diff options
author | Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> | 2018-08-28 12:42:19 +0530 |
---|---|---|
committer | Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> | 2018-08-28 12:42:19 +0530 |
commit | c8dd67e7c958de04c3783cbea7c384431707b5f8 (patch) | |
tree | e2598bc72869dcb1fad19f600d9147539d441708 /ChangeLog | |
parent | 5abedf97a3d396798cb48a3bf86f322d71955ad9 (diff) | |
download | glibc-c8dd67e7c958de04c3783cbea7c384431707b5f8.tar.gz glibc-c8dd67e7c958de04c3783cbea7c384431707b5f8.tar.xz glibc-c8dd67e7c958de04c3783cbea7c384431707b5f8.zip |
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 8419d4671c..2a250970e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> + + * string/memmem.c: Use memcmp for first match. + 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com> [BZ #17426] |