-
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: remove unnecessary comparison in catchup scan
Iterators already respect the upper bound we set at construction time making this comparison redundant. Removing this comparison provides a nice performance win: ``` name old time/op new time/op delta CatchupScan/linear-keys/useTBI=false/withDiff=true/perc=99.00-16 261ms ± 2% 249ms ± 4% -4.90% (p=0.000 n=24+25) CatchupScan/linear-keys/useTBI=false/withDiff=false/perc=99.00-16 226ms ± 3% 214ms ± 4% -5.55% (p=0.000 n=23+25) ``` Release note: None Release justification: Performance improvement for catchup scans helps address the cause of recent high-priority customer incidents.
- Loading branch information
1 parent
c6c9290
commit 0417041
Showing
5 changed files
with
18 additions
and
11 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
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
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