Skip to content

Commit

Permalink
Ruby 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
t27duck committed Dec 28, 2023
1 parent 9b7b564 commit 9c32084
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.2
3.3.0
13 changes: 13 additions & 0 deletions config/initializers/enable_yjit.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 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

0 comments on commit 9c32084

Please sign in to comment.