-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: avoid unnecessary copies in rangefeed catchup-scan
This avoids two copies in the catchup-scan code. In the best case, this provides a nice win even without TBI enabled: ``` name old time/op new time/op delta CatchupScan/linear-keys/useTBI=false/withDiff=true/perc=99.00-16 316ms ± 1% 261ms ± 2% -17.17% (p=0.000 n=23+24) CatchupScan/linear-keys/useTBI=false/withDiff=false/perc=99.00-16 257ms ± 2% 226ms ± 3% -12.05% (p=0.000 n=24+23) name old alloc/op new alloc/op delta CatchupScan/linear-keys/useTBI=false/withDiff=true/perc=99.00-16 79.0MB ± 0% 10.4MB ± 0% -86.89% (p=0.000 n=24+25) CatchupScan/linear-keys/useTBI=false/withDiff=false/perc=99.00-16 10.4MB ± 0% 2.5MB ± 0% -76.03% (p=0.000 n=20+25) name old allocs/op new allocs/op delta CatchupScan/linear-keys/useTBI=false/withDiff=true/perc=99.00-16 35.8k ± 0% 31.4k ± 0% -12.20% (p=0.000 n=22+25) CatchupScan/linear-keys/useTBI=false/withDiff=false/perc=99.00-16 31.4k ± 0% 30.8k ± 0% -2.04% (p=0.000 n=25+25) ``` Release justification: Performance improvement for catchup scans helps address the cause of recent high-priority customer incidents. Release note: None
- Loading branch information
1 parent
87c7f11
commit c6c9290
Showing
2 changed files
with
65 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters