-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe a problem during finalization #8
Comments
The test can certainly be done before. I will take closer look when I get a chance. |
@amirouche Thanks for finding this. I must've overlooked it during some refactoring or so. As you can see in #10 it really speeds up setup considerably. |
By the way, this is not a performance improvement but a remark about the following: ahocorapy/src/ahocorapy/keywordtree.py Lines 150 to 166 in 7098bbb
The test Thanks a lot for sharing this library 👍 |
Last thing, in my implementation I replaced the list |
|
Released performance fix with 1.6.0 Thanks for contributing with such detailed suggestions @amirouche |
In the
search_lss
method:ahocorapy/src/ahocorapy/keywordtree.py
Lines 164 to 170 in 4f31555
The line before the last is strange:
suffix != self._zero_state
that test can be done before we enter the loop.So there might be some performance to gain during finalization.
Let me know what you think 🙂
The text was updated successfully, but these errors were encountered: