Skip to content
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

storage/engine: reduce allocations in RocksDBBatchReader #18914

Merged

Conversation

petermattis
Copy link
Collaborator

Rather than use a bytes.Reader for reading the batch repr, read from a
[]byte. This allows us to return safe slices from
RocksDBBatchReader.{Key,Value} and removes the need to temporarily copy
the key and value.

Rather than use a bytes.Reader for reading the batch repr, read from a
[]byte. This allows us to return safe slices from
RocksDBBatchReader.{Key,Value} and removes the need to temporarily copy
the key and value.
@petermattis petermattis requested review from a team September 29, 2017 20:09
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@petermattis petermattis requested a review from danhhz September 29, 2017 20:10
@bdarnell
Copy link
Contributor

:lgtm:


Reviewed 3 of 3 files at r1.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from Reviewable

@petermattis petermattis merged commit 081f0ba into cockroachdb:master Sep 30, 2017
@petermattis petermattis deleted the pmattis/rocksdb-batch-reader branch September 30, 2017 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants