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
The text was updated successfully, but these errors were encountered:
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
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
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.
Closing as I don't think this is actionable on this side, unless I'm missing something.
I see how interning strings would require a global vm lock, but assigning a string as a Hash key does attempt to intern the string anyway as far as I'm aware.
If there something you think we could do, I'll all ears, but in the meantime I'm trying to close non-actionable issues.
See https://bugs.ruby-lang.org/issues/19288
I've opened this issue just to notify you guys.
The text was updated successfully, but these errors were encountered: