-
Notifications
You must be signed in to change notification settings - Fork 111
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
allocator_api: missing grow_zeroed implementation #98
Comments
baloo
added a commit
to baloo/bumpalo
that referenced
this issue
Feb 17, 2021
Fixup fitzgen#98 Signed-off-by: Arthur Gautier <[email protected]>
baloo
added a commit
to baloo/bumpalo
that referenced
this issue
Feb 17, 2021
Fixup fitzgen#98 Signed-off-by: Arthur Gautier <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe the implementation made in #92 could use a specific
grow_zeroed
implementationIf I read https://github.com/rust-lang/rust/blob/ee88f46bb5e27c4d9f30326e69ff2298dcbeecb1/library/core/src/alloc/mod.rs#L253-L277 correctly, that could use more effective one.
As currently implemented, it grows by
new_layout.size()
where it could grow by onlynew_layout.size()-old_layout.size()
.The text was updated successfully, but these errors were encountered: