diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-04-26 18:18:59 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-04-26 20:58:50 -0700 |
commit | 4c57448135ebd424c15c774ffba8a187e32bc0a3 (patch) | |
tree | 18dfae6cc86c1787d8a6a4cf2312852ab074ea58 /bootstrap.conf | |
parent | 7600fde5bcf50872a89d427fea4add1f590ada36 (diff) | |
download | grep-4c57448135ebd424c15c774ffba8a187e32bc0a3.tar.gz |
kwset: speed up by using memchr2
Idea suggested by Eric Blake in: http://bugs.gnu.org/17229#43
* bootstrap.conf (gnulib_modules): Add memchr2.
* src/kwset.c: Include stdint.h, for uintptr_t. Include memchr2.h.
(struct kwset): New members gc1, gc2, gc1help.
(tr): Move earlier, so it can be used earlier.
(kwsprep): Initialize struct kwset's new members.
(memchr_kwset): Rename from memchr_trans. Combine C and TRANS args into
new arg KWSET. All uses changed. Use memchr2 when appropriate.
(bmexec): Use new members instead of recomputing their values.
Increase advance_heuristic; it's just a guess, but memchr2 probably
makes it reasonable to increase it.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r-- | bootstrap.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index 367427d8..9f3457da 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -57,6 +57,7 @@ manywarnings mbrlen mbrtowc memchr +memchr2 mempcpy minmax obstack |