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

allocator_api: missing grow_zeroed implementation #98

Closed
baloo opened this issue Feb 17, 2021 · 0 comments
Closed

allocator_api: missing grow_zeroed implementation #98

baloo opened this issue Feb 17, 2021 · 0 comments

Comments

@baloo
Copy link
Contributor

baloo commented Feb 17, 2021

I believe the implementation made in #92 could use a specific grow_zeroed implementation

If 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 only new_layout.size()-old_layout.size().

baloo added a commit to baloo/bumpalo that referenced this issue Feb 17, 2021
baloo added a commit to baloo/bumpalo that referenced this issue Feb 17, 2021
@baloo baloo closed this as completed Feb 18, 2021
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

No branches or pull requests

1 participant