File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
railties/lib/rails/application Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -641,6 +641,7 @@ See [Custom Configuration](#custom-configuration)
641
641
642
642
Enables YJIT as of Ruby 3.3, to bring sizeable performance improvements. If you are
643
643
deploying to a memory constrained environment you may want to set this to ` false ` .
644
+ Additionally, you can pass a hash to configure YJIT options such as ` { stats: true } ` .
644
645
645
646
| Starting with version | The default value is |
646
647
| --------------------- | -------------------- |
Original file line number Diff line number Diff line change @@ -229,7 +229,8 @@ def self.complete(_state)
229
229
230
230
initializer :enable_yjit do
231
231
if config . yjit && defined? ( RubyVM ::YJIT . enable )
232
- RubyVM ::YJIT . enable
232
+ options = config . yjit . is_a? ( Hash ) ? config . yjit : { }
233
+ RubyVM ::YJIT . enable ( **options )
233
234
end
234
235
end
235
236
end
You can’t perform that action at this time.
0 commit comments