Rely on Rails to enable YJIT when available

pull/33017/head
Matt Jankowski 2024-11-21 16:49:49 -05:00
parent 68c7782940
commit 7b9e73955c
1 changed files with 0 additions and 13 deletions

View File

@ -1,13 +0,0 @@
# frozen_string_literal: true
# Automatically enable YJIT as of Ruby 3.3, as it brings very
# sizeable performance improvements.
# If you are deploying to a memory constrained environment
# you may want to delete this file, but otherwise it's free
# performance.
if defined?(RubyVM::YJIT.enable)
Rails.application.config.after_initialize do
RubyVM::YJIT.enable
end
end