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

Preallocate vec for multiple keys #195

Merged
merged 1 commit into from
Dec 31, 2024
Merged

Preallocate vec for multiple keys #195

merged 1 commit into from
Dec 31, 2024

Conversation

56quarters
Copy link
Owner

When converting multiple strings to keys, allocate the vec for the keys ahead of time to avoid needing to grow the vec multiple times.

Additionally, fix the timing of sets for the mc bench command.

When converting multiple strings to keys, allocate the vec for the
keys ahead of time to avoid needing to grow the vec multiple times.

Additionally, fix the timing of `set`s for the `mc bench` command.
@56quarters 56quarters marked this pull request as ready for review December 31, 2024 14:21
@56quarters 56quarters merged commit 7816823 into master Dec 31, 2024
1 check passed
@56quarters 56quarters deleted the perf-improvements branch December 31, 2024 14:21
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.

1 participant