Skip all-zero passes in radix sort of results
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Precompute OR of all sort keys; a byte position that is zero across every key contributes a no-op pass. Default two-criteria setup leaves the low 32 bits zero, so 4 of 8 passes are skipped without a histogram scan. 2x on the sort, 3-8% on high-match queries. No regression when all bytes are used.
authored by Junegunn Choi · committed by Junegunn Choi · parent 2209a94 · Browse files · 2 files+14 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+14 added−1 removed
- other:+14 added−1 removed