forked from dgraph-io/badger
-
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.
Prevent unnecessary safecopy in iterator parseKV (dgraph-io#971)
The previous implementation of parseKV would copy over the value slice every time we iterate, which is not necessary. The value slice should be copied only when we return the result of point lookups. The proposed patch removes safeCopy call from the iterator.
- Loading branch information
Ibrahim Jarif
authored
Aug 10, 2019
1 parent
9d7b751
commit 74ed6da
Showing
2 changed files
with
3 additions
and
3 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