aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols
diff options
context:
space:
mode:
authorVitaly Lavrov <vel21ripn@gmail.com>2021-06-07 12:19:40 +0000
committerGitHub <noreply@github.com>2021-06-07 14:19:40 +0200
commit65678dbeeabcf51e02ba3cc9ffbd36324a92a971 (patch)
tree6ad7729fe9fcd32edb1157ad18adde15b6e26b72 /src/lib/protocols
parent2fcf641e87edbd7188b5c8390c3e12128638f01a (diff)
New version of the ahocorasick library (#1200)
The new version is about 25% faster with -O2 and 45% faster with -O3. No recursion is used (smaller stack size required). Uses less memory (by valgrind info) bigram: - original 1796 allocs, 247864 bytes allocated - new 1232 allocs, 158880 bytes allocated host_match: - original 18038 allocs, 3004576 bytes allocated - new 6861 allocs, 396624 bytes allocated The function ac_automata_search() is thread safe. Optional case-insensitive comparison. Matching at the beginning and at the end of the string is supported. One code file and one header file.
Diffstat (limited to 'src/lib/protocols')
0 files changed, 0 insertions, 0 deletions