]> git.ipfire.org Git - thirdparty/glibc.git/commit
Speedup first memmem match
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Tue, 28 Aug 2018 07:12:19 +0000 (12:42 +0530)
committerRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Tue, 28 Aug 2018 07:12:19 +0000 (12:42 +0530)
commitc8dd67e7c958de04c3783cbea7c384431707b5f8
treee2598bc72869dcb1fad19f600d9147539d441708
parent5abedf97a3d396798cb48a3bf86f322d71955ad9
Speedup first memmem match

As done in commit 284f42bc778e487dfd5dff5c01959f93b9e0c4f5, memcmp
can be used after memchr to avoid the initialization overhead of the
two-way algorithm for the first match.  This has shown improvement
>40% for first match.
ChangeLog
string/memmem.c