enable_yjit.rb 346 B

1234567891011
  1. # Automatically enable YJIT as of Ruby 3.3, as it bring very
  2. # sizeable performance improvements.
  3. # If you are deploying to a memory constrained environment
  4. # you may want to delete this file, but otherwise it's free
  5. # performance.
  6. if defined? RubyVM::YJIT.enable
  7. Rails.application.config.after_initialize do
  8. RubyVM::YJIT.enable
  9. end
  10. end