Project

General

Profile

Actions

Misc #15474

closed

Running Rails with jit

Added by foonlyboy (Eike Dierks) over 5 years ago. Updated over 5 years ago.

Status:
Rejected
Assignee:
-
[ruby-core:90752]

Description

I have installed ruby-2.6.0
I want to try to run my rails app with the jit.

How can this be done?
I should try env RUBY_OPTS='--jit'
Is this the way the go?

The jit ist experimental, but promising,
so we need to try it wherever we can.

there needs to be a clear documentation,
how to enable or disable jit

I'd like to enable jit by default,
when running 2.6.0

running 2.5.3 with --jit gives:
/opt/local/bin/ruby --jit -e 'puts "hello world"'
/opt/local/bin/ruby: invalid option --jit (-h will show valid options) (RuntimeError)

I'd like to suggest a new env: RUBY_JIT
which should only be respected by ruby >= 2.6.0

~eike

Actions

Also available in: Atom PDF

Like0
Like0Like0