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

JSON gem is slow parsing integers/floats when there's multiple threads executing at once (in Ractors) #511

Open
luke-gru opened this issue Jan 23, 2023 · 1 comment

Comments

@luke-gru
Copy link

See https://bugs.ruby-lang.org/issues/19288

I've opened this issue just to notify you guys.

@luke-gru luke-gru changed the title JSON gem is very slow parsing integers when there's multiple threads executing at once (in Ractors) JSON gem is very slow parsing integers/floats when there's multiple threads executing at once (in Ractors) Jan 23, 2023
@luke-gru luke-gru changed the title JSON gem is very slow parsing integers/floats when there's multiple threads executing at once (in Ractors) JSON gem is slow parsing integers/floats when there's multiple threads executing at once (in Ractors) Jan 23, 2023
@luke-gru luke-gru reopened this Jan 24, 2023
@luke-gru
Copy link
Author

It looks like part of the issue is that interning all the object names is causing lots of VM locks, because the frozen strings are per-vm, not per ractor, so a VM lock is necessary to search or update the frozen string table.

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

1 participant