diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2021-05-31 22:00:14 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2021-05-31 22:01:04 -0700 |
commit | 028f1887c2bfa50dcfc1b623470d6ab1b880fdde (patch) | |
tree | 83a43cc96200796c267da0e80fbe8e32ed4081e8 /mjit.c | |
parent | 2209e152c0ec2c0548c22b2b14e52007b74a9efb (diff) |
Change the default --jit-max-cache to 10000
This is useful for large applications like Rails.
https://k0kubun.medium.com/ruby-3-jit-can-make-rails-faster-756310f235a
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -598,7 +598,7 @@ system_tmpdir(void) // Minimum value for JIT cache size. #define MIN_CACHE_SIZE 10 // Default permitted number of units with a JIT code kept in memory. -#define DEFAULT_MAX_CACHE_SIZE 100 +#define DEFAULT_MAX_CACHE_SIZE 10000 // A default threshold used to add iseq to JIT. #define DEFAULT_MIN_CALLS_TO_ADD 10000 |