This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] Improve performance of strstr


On 10/3/18 8:27 AM, Wilco Dijkstra wrote:
v2: Add documentation comment back in. Reduce size of shift table further to
gain another 10% performance on short strings.

I haven't reviewed the patch itself (although in theory it sounds fine), however:


Tested against GLIBC testsuite and passes randomized tests.

Passing the glibc testsuite isn't all that reassuring, as they just barely had to squash a strstr bug this year that was not caught by their testsuite at the time:

https://sourceware.org/bugzilla/show_bug.cgi?id=23637

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]