You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your great work on this project!
I was wondering if the implementation is thread safe when used in a read-only fashion,
i.e. I want to initalize one AhoCorasickDoubleArrayTrie, set it up via build once
and then call parseText from multiple threads. Is this possible / safe to do?
The text was updated successfully, but these errors were encountered:
Yes, it's safe to call parseText from multiple threads. As this method doesn't modify any members, but put every temporary result on stack, it's thread safe.
Thanks for your great work on this project!
I was wondering if the implementation is thread safe when used in a read-only fashion,
i.e. I want to initalize one
AhoCorasickDoubleArrayTrie
, set it up viabuild
onceand then call
parseText
from multiple threads. Is this possible / safe to do?The text was updated successfully, but these errors were encountered: