You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cov and scov by a wide random key are 18% slower since the running-mean pivot #1889
cyclic 179,200 groups, a nullable x (first value null)
+19% (29.7 → 35.5 ms on dev; #1893 adds +3% layout)
wide key with a where: mask (10% / 50% / 90%)
+7% to +12%
wide random key, F64 × I32
about +2%
At all cores every one of these is within 3% of the commit before #1850 (mostly within 2%): the cost shows only at one worker.
The cause is the per-group pivot of #1850's design. Each group's pivot is taken from its own first pair, and a state that misses the cache costs about a memory latency per group on the paths that seed it per row. #1893 removes most of it for null-free F64 × F64 pairs on scattered keys. The nullable, masked and integer paths still seed per row; extending the seed pass there is about a day of work with no guarantee of reaching 10%. Left open for a decision on whether that is worth doing.
#1893 is closed without merging. Its chunked seed path for null-free F64 × F64 pairs on scattered keys gained about 6% at one worker on the wide random key, from +18% to about +11% against the commit before #1850. Its path selector, which judges a batch from a prefix of its group ids, can be misled. The second review measured, at one worker:
a batch whose first 64 rows jump between two far groups, with a clustered tail: +49% to +56% slower than dev;
four hot states visited with large jumps between them: +23% slower than dev.
A prefix heuristic always leaves such an input, so the path was dropped. Dev keeps the #1850 row path. What remains against the commit before #1850, at one worker, is therefore:
Activity
perf(agg): cov and scov by a wide key seed their pivots ahead of the …
singaraiona commentedon Nov 28, 2026
What remains after #1893, at one worker, against the commit before #1850 (1ce0357). Interleaved runs, pinned, lowest minima:
cov/scovwhere:mask (10% / 50% / 90%)At all cores every one of these is within 3% of the commit before #1850 (mostly within 2%): the cost shows only at one worker.
The cause is the per-group pivot of #1850's design. Each group's pivot is taken from its own first pair, and a state that misses the cache costs about a memory latency per group on the paths that seed it per row. #1893 removes most of it for null-free F64 × F64 pairs on scattered keys. The nullable, masked and integer paths still seed per row; extending the seed pass there is about a day of work with no guarantee of reaching 10%. Left open for a decision on whether that is worth doing.
singaraiona commentedon Nov 28, 2026
#1893 is closed without merging. Its chunked seed path for null-free F64 × F64 pairs on scattered keys gained about 6% at one worker on the wide random key, from +18% to about +11% against the commit before #1850. Its path selector, which judges a batch from a prefix of its group ids, can be misled. The second review measured, at one worker:
A prefix heuristic always leaves such an input, so the path was dropped. Dev keeps the #1850 row path. What remains against the commit before #1850, at one worker, is therefore:
cov/scovwhere:mask (10–90%)At all cores every one of these is within 3% of the commit before #1850. Left open for the owner to decide whether more work is worth it.