diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-12-02 08:32:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 11:32:49 -0500 |
commit | fa77bcf7220a5515323a53a8320132418124f202 (patch) | |
tree | 3964c2a664c93a619f9ce56ce0dd3d8ffc8189e4 | |
parent | e558c374b7975f9923228cdf325f767eef97a725 (diff) |
YJIT: Change the default --yjit-call-threshold to 30 (#6850)
Notes
Notes:
Merged-By: maximecb <maximecb@ruby-lang.org>
-rw-r--r-- | NEWS.md | 2 | ||||
-rw-r--r-- | yjit/src/options.rs | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -518,6 +518,8 @@ The following deprecated APIs are removed. * Simply run ruby with `--yjit-stats` to compute stats (incurs some run-time overhead). * YJIT is now optimized to take advantage of object shapes. [[Feature #18776]] * Take advantage of finer-grained constant invalidation to invalidate less code when defining new constants. [[Feature #18589]] +* The default `--yjit-exec-mem-size` is changed to 128 (MiB). +* The default `--yjit-call-threshold` is changed to 30. ### MJIT diff --git a/yjit/src/options.rs b/yjit/src/options.rs index 645af0faac..268e141ed6 100644 --- a/yjit/src/options.rs +++ b/yjit/src/options.rs @@ -55,7 +55,7 @@ pub struct Options { pub static mut OPTIONS: Options = Options { exec_mem_size: 128 * 1024 * 1024, code_page_size: 16 * 1024, - call_threshold: 10, + call_threshold: 30, greedy_versioning: false, no_type_prop: false, max_versions: 4, |