Skip to content

Commit d8d0484

Browse files
committed
ZJIT: Widen profiling window from 5 to 25 observations
Increase DEFAULT_NUM_PROFILES so the interpreter collects more type observations before compilation. The wider window gives better type coverage for cold paths and polymorphic call sites, improving the quality of generated code on first compilation.
1 parent 83da22d commit d8d0484

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zjit/src/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::stats::Counter;
77
use std::collections::HashSet;
88

99
/// Default --zjit-num-profiles
10-
const DEFAULT_NUM_PROFILES: NumProfiles = 5;
10+
const DEFAULT_NUM_PROFILES: NumProfiles = 25;
1111
pub type NumProfiles = u32;
1212

1313
/// Default --zjit-call-threshold. This should be large enough to avoid compiling

0 commit comments

Comments
 (0)