Closed baloo closed 3 years ago
Fixup #98
The current implementation of grow_zeroed in liballoc allocates a new chunk, copies data over, then deallocates the old chunk. Bumpalo can use a more memory efficient version of that, and this is an implementation of it.
(there is some noise due to rustfmt, which I forgot to run in the initial implementation, let me know if you want me to drop it).
Fixup #98
The current implementation of grow_zeroed in liballoc allocates a new chunk, copies data over, then deallocates the old chunk. Bumpalo can use a more memory efficient version of that, and this is an implementation of it.