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

Optimize multi_get_cf_opt() to use size hint #579

Merged
merged 2 commits into from
Jan 11, 2022

Conversation

niklasf
Copy link
Contributor

@niklasf niklasf commented Jan 6, 2022

Avoids an allocation by merging two of the vectors into a vector of tuples. The components are later referenced by dedicated vectors, anyway.

Also allows using unzip(), just like in multi_get_opt(). This avoids reallocations by using the size hint for keys internally.

@aleksuss aleksuss merged commit 522b496 into rust-rocksdb:master Jan 11, 2022
vldm pushed a commit to velas/rust-rocksdb that referenced this pull request Sep 8, 2022
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.

None yet

3 participants