Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
86515: storage: improve `ComputeStats` performance r=aliher1911 a=erikgrinaker This patch omits a `sort.Search()` call during `ComputeStats()` when possible, which essentially recovers the remaining no-range-key regression since 22.1. ``` name old time/op new time/op delta MVCCComputeStats_Pebble/valueSize=32/numRangeKeys=0-24 156ms ± 1% 145ms ± 1% -7.28% (p=0.000 n=10+10) MVCCComputeStats_Pebble/valueSize=32/numRangeKeys=1-24 190ms ± 1% 178ms ± 1% -6.24% (p=0.000 n=10+10) MVCCComputeStats_Pebble/valueSize=32/numRangeKeys=100-24 210ms ± 1% 187ms ± 1% -10.89% (p=0.000 n=10+10) ``` Resolves cockroachdb#84544. Release justification: bug fixes and low-risk updates to new functionality Release note: None Co-authored-by: Erik Grinaker <[email protected]>
- Loading branch information