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

Does it not support multithreading? #64

Open
wycst opened this issue Nov 27, 2024 · 1 comment
Open

Does it not support multithreading? #64

wycst opened this issue Nov 27, 2024 · 1 comment

Comments

@wycst
Copy link

wycst commented Nov 27, 2024

Hello, the project is very good. Recently, during testing with JMH, it was found that errors occur in multi-threaded environments. Does it currently not support multi-threaded concurrency?

@piotrrzysko
Copy link
Member

Hello, the SimdJsonParser is not thread-safe. However, you can create a dedicated instance for each thread and store it in a thread-local field. This should work well in multi-threaded environments.

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