diff options
author | Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> | 2018-08-28 12:42:19 +0530 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2019-09-13 15:17:56 +0100 |
commit | d6ccf2f45c5e09d3a36321ba695325589e8940fe (patch) | |
tree | f08fef2fe858f893afb252bf5213146a5d43238c /string/test-bcopy.c | |
parent | 1def6a34aee55e26a0755a3e36bf2e184a4cdf5e (diff) | |
download | glibc-d6ccf2f45c5e09d3a36321ba695325589e8940fe.tar.gz glibc-d6ccf2f45c5e09d3a36321ba695325589e8940fe.tar.xz glibc-d6ccf2f45c5e09d3a36321ba695325589e8940fe.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. (cherry picked from commit c8dd67e7c958de04c3783cbea7c384431707b5f8)
Diffstat (limited to 'string/test-bcopy.c')
0 files changed, 0 insertions, 0 deletions