about summary refs log tree commit diff
path: root/string/test-bcopy.c
diff options
context:
space:
mode:
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>2018-08-28 12:42:19 +0530
committerWilco Dijkstra <wdijkstr@arm.com>2019-09-13 15:17:56 +0100
commitd6ccf2f45c5e09d3a36321ba695325589e8940fe (patch)
treef08fef2fe858f893afb252bf5213146a5d43238c /string/test-bcopy.c
parent1def6a34aee55e26a0755a3e36bf2e184a4cdf5e (diff)
downloadglibc-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