-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent unnecessary safecopy in iterator parseKV #971
Conversation
The previous implementation of parseKV would copy over the value slice every time, which is not necessary. The value slice should be copied only when we return the result of point lookups. The proposed patch remove safecopy call from the iterator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ A review job has been created and sent to the PullRequest network.
@jarifibrahim you can click here to see the review status or cancel the code review job.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ashish-goswami)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✖️ This code review was cancelled. See Details
@ashish-goswami Review, please. |
Just check why travis is failing. |
The build on mac OS is failing on travis. It is failing for all PRs. |
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. (cherry picked from commit 74ed6da)
This reverts commit 4a22cac. This branch does not contain the other block iterator changes. This patch causes segmentation fault.
The previous implementation of parseKV would copy over the value slice
every time, which is not necessary. The value slice should be copied only
when we return the result of point lookups. The proposed patch remove
safecopy call from the iterator.
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)