Skip to content
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

Multi-threading issues? #9

Open
KeithVinson opened this issue Nov 15, 2022 · 2 comments
Open

Multi-threading issues? #9

KeithVinson opened this issue Nov 15, 2022 · 2 comments

Comments

@KeithVinson
Copy link

Not an issue, but I am curious if you are aware of any issue that might arise from having multiple threads using a pre built tree to search multiple text strings simultaneously?

Thanks for your insight.

@VitaliyMF
Copy link
Contributor

You should be able to use the same AhoCorasickDoubleArrayTrie instance from multiple threads, as shared state is modified only in the constructor (Build method).

@KeithVinson
Copy link
Author

KeithVinson commented Nov 16, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants