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

Thread Safety #182

Closed
pedromvgomes opened this issue Jun 2, 2020 · 2 comments
Closed

Thread Safety #182

pedromvgomes opened this issue Jun 2, 2020 · 2 comments

Comments

@pedromvgomes
Copy link

Is the Parser thread-safe?
Can I build the parser into a static var and use it to parse inputs in different concurrent threads?

If not, is there any way to reduce the performance hit of having to build the parser (asking because I will be using it to parse data coming from request to a web API) ?

@b3b00
Copy link
Owner

b3b00 commented Jun 3, 2020

Yes it is thread safe. You should use it as you want. I solved the last thread safety issues a deux month ago search in closes issues.

@b3b00
Copy link
Owner

b3b00 commented Jun 4, 2020

to be complete here is the last issue about thread safety #155
and the commit that fixed it : 0ec386a

I think your use case is fine as long as your syntax tree visitor is thead safe too.

@b3b00 b3b00 closed this as completed Jun 4, 2020
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