mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 10:30:15 -05:00
14 lines
379 B
Ruby
14 lines
379 B
Ruby
# 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
|