mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-10 01:56:15 +08:00
On the x86_64 lane 41% of records-sort samples sat on the first load of each record header (the comparator argument retain): a merge step touches one element it has not seen before per comparison. Prefetching the element four positions ahead on the advancing side (and during run detection) overlaps that miss with the current comparator call: ~4% faster on Linux (156 vs 162 ms median), neutral on macOS.