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

New allocator strategy #419

Closed
zzau13 opened this issue Jul 20, 2020 · 0 comments
Closed

New allocator strategy #419

zzau13 opened this issue Jul 20, 2020 · 0 comments

Comments

@zzau13
Copy link
Contributor

zzau13 commented Jul 20, 2020

bytes/src/bytes_mut.rs

Lines 735 to 736 in 6fdb739

// For now, use a `Vec` to manage the memory for us, but we may want to
// change that in the future to some alternate allocator strategy.

It should not be too complicated to integrate the RawVector implementation. With this change you can avoid double checks and use inline optimizations.

The implementation should be very soundness, so I will need the help of the creators to define it.

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 a pull request may close this issue.

1 participant