4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00
Wilco Dijkstra 6dbb20dfc7 Improve strstr performance of short needles
Improve strstr performance for the common case of short needles.  For a single
character strchr is best, for 2-4 characters a small loop is fastest.  For these
the speedup over the Two-Way algorithm is ~10 times on large strings.

Newlib builds, the new code passes GLIBC testsuite. OK for commit?
2018-09-05 10:09:31 +02:00
..
2018-01-17 11:47:26 -06:00
2017-12-07 11:54:11 +00:00
2018-07-30 10:47:57 +02:00
2018-01-17 11:47:26 -06:00
2018-03-16 10:21:23 +01:00
2017-12-07 11:54:11 +00:00
2018-08-29 15:57:27 +02:00
2018-08-29 15:57:27 +02:00
2018-01-17 11:47:30 -06:00
2017-11-29 11:25:46 -06:00
2017-11-29 11:25:45 -06:00
2017-11-29 11:25:45 -06:00
2017-11-29 11:25:46 -06:00
2017-11-29 11:25:46 -06:00