[New-bugs-announce] [issue46848] Use optimized string search function in mmap.find()

Stefan Tatschner report at bugs.python.org
Thu Feb 24 07:43:50 EST 2022


New submission from Stefan Tatschner <stefan at rumpelsepp.org>:

The mmap.find() in  function uses a naive loop to search string matches. This can be optimized “for free” by using libc's memmap(3) function instead.

The relevant file is Modules/mmapmodule.c, the relevant function is mmap_gfind().

----------
messages: 413902
nosy: rumpelsepp
priority: normal
severity: normal
status: open
title: Use optimized string search function in mmap.find()

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46848>
_______________________________________


More information about the New-bugs-announce mailing list