1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-27 06:18:17 +09:00

Rely on Rails to enable YJIT when available (#33017)

This commit is contained in:
Matt Jankowski 2024-11-22 03:31:23 -05:00 committed by GitHub
parent d75088d699
commit be2d4615ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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