Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

remove yjit config from initializer

ulferts220443670e04
diff --git a/config/initializers/01_enable_yjit.rb b/config/initializers/01_enable_yjit.rb
deleted file mode 100644
index 0649eea69be..00000000000
--- a/config/initializers/01_enable_yjit.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-# Automatically enable YJIT if running Ruby 3.3 or newer,
-# as it brings very sizeable performance improvements.
-# Many users reported 15-25% improved latency.
-
-# 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 if ENV["OPENPROJECT_DISABLE__YJIT"] != "true"
- end
-end
diff --git a/config/initializers/new_framework_defaults_7_2.rb b/config/initializers/new_framework_defaults_7_2.rb
index 1898cd3e8e5..14e90130db0 100644
--- a/config/initializers/new_framework_defaults_7_2.rb
+++ b/config/initializers/new_framework_defaults_7_2.rb
@@ -69,4 +69,4 @@ Rails.application.config.active_record.postgresql_adapter_decode_dates = true
# Enables YJIT as of Ruby 3.3, to bring sizeable performance improvements. If you are
# deploying to a memory constrained environment you may want to set this to `false`.
#++
-Rails.application.config.yjit = true
+Rails.application.config.yjit = ENV["OPENPROJECT_DISABLE__YJIT"] != "true"