If you read @byroot.bsky.social 's "What's the deal with Ractors?", and were bummed at how poorly they handled JSON parsing, then @jhawthorn.com has brightened your day! Frozen interned strings are now stored in a lock-free hash, making the Ractor example 2x faster than the single-threaded example!
Post
This will land in Ruby 3.5: github.com/ruby/ruby/pu... These kind of improvements, and the Ratomic gem from @mike.contribsys.com (based on Ilya Bylich's work) could start to turn the tide on Ractor usefulness! byroot.github.io/ruby/perform... iliabylich.github.io/ruby-ractors...
github.comLock free hash set for fstrings by jhawthorn · Pull Request #12921 · ruby/rubyThis implements a hash set which is wait-free for lookup and lock-free for insert (unless resizing) to use for fstring de-duplication.
As highlighted in https://bugs.ruby-lang.org/issues/19288, hea...
No replies yet.