Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
The video presented by Takashi Kokubun at RubyKaigi 2024 revolves around YJIT (Yet another Just-In-Time compiler), focusing on how it enhances the performance of Ruby on Rails applications, boasting improvements of up to 1.8 times faster execution. Key points discussed include: - **Introduction to YJIT**: Takashi explains that YJIT is a JIT compiler that can be enabled in Ruby applications, designed to significantly speed up method execution by converting frequently-called methods into native code. - **Production Use Cases**: The speaker shares a success story involving Shiseido's ST renderer service, which achieved a 177% performance boost in a production environment with high traffic, demonstrating the effectiveness of YJIT. - **Enabling YJIT**: Various methods for enabling YJIT in production are outlined. This includes adding the '-W' option to the Ruby command, utilizing environment variables, and incorporating built-in functionality from Ruby 3.3 and Rails 7.2. - **Memory Management**: Takashi emphasizes the trade-off between performance gains and memory usage, suggesting adjustments to 'YJIT_EXEC_MSIZE' to optimize memory allocation without compromising on speed. - **Ruby 3.3 Enhancements**: Improvements in Ruby 3.3 that contribute to YJIT's performance include a higher optimization ratio for method calls and enhancements in exception handling and stack value management. - **Further Optimizations**: The speaker notes that ongoing work for Ruby 3.4 will further refine these optimizations, including better handling of method inlining for standard operations in Rails applications. - **Final Recommendations**: The session concludes with a strong recommendation for developers to upgrade to Ruby 3.3 and enable YJIT in their applications to leverage the observed performance improvements, encouraging community contributions for better optimization.
Suggest modifications
Cancel