Skip to content

Commit

Permalink
perf: increase size of SmallVec from 8 to 50
Browse files Browse the repository at this point in the history
8 is too small, and you end up not benefitting from perf benefits of the INFER_DATE_FLAGS smallvec, which is used in very hot loops
  • Loading branch information
jqnatividad committed Dec 5, 2024
1 parent 6fa56db commit 2d81b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ const STATSDATA_TYPES_ARRAY: [JsonTypes; MAX_STAT_COLUMNS] = [
JsonTypes::Int, //antimode_occurrences
];

static INFER_DATE_FLAGS: OnceLock<SmallVec<[bool; 8]>> = OnceLock::new();
static INFER_DATE_FLAGS: OnceLock<SmallVec<[bool; 50]>> = OnceLock::new();
static RECORD_COUNT: OnceLock<u64> = OnceLock::new();

// standard overflow and underflow strings
Expand Down

0 comments on commit 2d81b1d

Please sign in to comment.