forked from cockroachdb/pebble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store a pointer to a Comparer on the Batch struct, rather than copying individual fields during initialization. These fields were not accessed directly during hot paths, so the indirection is insignificant. This will ease use of Comparer.Split in new places, such as the batch iterator early exiting during a SeekPrefixGE.
- Loading branch information
Showing
2 changed files
with
36 additions
and
51 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