diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-12-31 16:17:03 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-12-31 16:18:42 -0800 |
commit | 296f3b994d59006a64fcd1a2398a6b3e13e84e3c (patch) | |
tree | 5ca828c7fb3bac13fa89ff810002c2eb1d653286 /tests/pcre-jitstack | |
parent | bf2b73acf81dd21e7e587dfd00c3362ff412aa46 (diff) | |
download | grep-296f3b994d59006a64fcd1a2398a6b3e13e84e3c.tar.gz |
grep: speed up -x with many patterns
* src/kwsearch.c (Fcompile): Improve buffer allocation overhead
with -x and multiple patterns. In the common case where '\n' is
the end-of-line byte, avoid copying other than the first and last
patterns.
Diffstat (limited to 'tests/pcre-jitstack')
0 files changed, 0 insertions, 0 deletions