1
0

enable_yjit.rb 379 B

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