-
Book Overview & Buying
-
Table Of Contents
Polished Ruby Programming - Second Edition
By :
Since at least Ruby 3.3, Ruby's JIT compiler has significantly improved performance for most Ruby programs. However, it is still not enabled by default. If you care about performance, there is rarely a reason not to enable it. About the only time you wouldn't want to enable it is if you are extremely low on memory and cannot afford the modest additional memory it requires. In all other cases, it makes sense to initialize. Using the JIT compiler results in a large performance improvement. All profiles and benchmarks in this chapter were run using the JIT compiler, and the results you get without the JIT compiler are in many cases radically different.
To enable Ruby's JIT compiler, pass the ‑‑jit option when running the Ruby program, or place it in the RUBYOPT environment variable. The advantage of using this approach is that it should automatically work with whatever the currently recommended JIT compiler is. Currently...
Change the font size
Change margin width
Change background colour