3 ms·
Be sure to use auto configuration to get it to go even faster, depending on your use case: https://docs.rs/aho-corasick/0.7.15/aho_corasick/struct.AhoCorasick.h
by burntsushi 6y ago
Be sure to use auto configuration to get it to go even faster, depending on your use case: https://docs.rs/aho-corasick/0.7.15/aho_corasick/struct.AhoCorasick.html#method.new_auto_configured https://docs.rs/aho-corasick/0.7.15/aho_corasick/struct.AhoC...
Or just be sure to enable the DFA option if you can afford it. It looks like the Python library is just the standard NFA algorithm.
- itamarst 6y agoYeah, I was using DFA. Next step is trying alternative approach, but if that alternative doesn't work I'm going to see about wrapping your package for Python. Thanks for all your work on it!
- burntsushi 6y agoNice! Reach out if there are any problems or if you need something exposed in the API. Looking at the pyahocorasick issue tracker, there are a number of features/bugs that your wrapper package would resolve. :)