Member-only story

Engineering With ROR: Digest #7

Curated and handpicked Ruby on Rails blogs.

Suraj Mishra
5 min readJan 17, 2025

This week’s collection covers performance optimizations in Ruby’s YJIT 3.4 release to practical tips for improving Turbo forms with custom events. These articles provide developers with valuable knowledge to take their projects to the next level. Additionally, solutions like auto-saving Rails forms and addressing Ruby’s mutable object issue demonstrate how the Rails and Ruby communities are constantly evolving to address real-world challenges and improve the developer experience.

Subscribe to the newsletter.

YJIT 3.4: Even Faster and More Memory-Efficient

  • YJIT 3.4, released in January 2025, brings significant performance improvements and better memory efficiency for Ruby, with a 5–7% increase in speed compared to YJIT 3.3.
  • This version introduces various optimizations, such as enhanced inlining of small methods, better support for profiling and memory allocation, and faster execution of pure-Ruby core methods.
  • YJIT 3.4 also reduces memory usage compared to previous versions, making it more efficient, particularly on x86–64 systems. Shopify’s use of YJIT 3.4 during peak traffic periods, like Black Friday, demonstrated substantial speed improvements in production.

--

--

Suraj Mishra
Suraj Mishra

Written by Suraj Mishra

Staff Software Engineer @PayPal ( All opinions are my own and not of my employer )

No responses yet