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

RUST-1736 Add into_vec serialization method for reusing allocated memory #328

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

djkoloski
Copy link

During serialization, to_vec can get particularly hot by reallocating a large number of times. This PR adds a method to provide a pre-warmed Vec as input to avoid these reallocations. Since the Vec is given back, after the data is written, it can be reused.

@kevinAlbs kevinAlbs changed the title Add into_vec serialization method for reusing allocated memory RUST-1736 Add into_vec serialization method for reusing allocated memory Aug 22, 2023
@kevinAlbs kevinAlbs added the tracked-in-jira Ticket filed in Mongo's Jira system label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracked-in-jira Ticket filed in Mongo's Jira system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants