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

support clearing TypedArena with the chunks preserved #18261

Closed
thestinger opened this issue Oct 23, 2014 · 0 comments
Closed

support clearing TypedArena with the chunks preserved #18261

thestinger opened this issue Oct 23, 2014 · 0 comments
Labels
A-collections Area: `std::collection` I-slow Issue: Problems and improvements with respect to performance of generated code.

Comments

@thestinger
Copy link
Contributor

It would be pretty simple to add this functionality, and it would allow catching up to the apr-based binary-trees implementation.

@thestinger thestinger added A-libs I-slow Issue: Problems and improvements with respect to performance of generated code. labels Oct 23, 2014
@thestinger thestinger self-assigned this Oct 23, 2014
@thestinger thestinger changed the title support clearing the TypedArena with the chunks preserved support clearing TypedArena with the chunks preserved Oct 28, 2014
@kmcallister kmcallister added the A-collections Area: `std::collection` label Jan 16, 2015
@thestinger thestinger removed their assignment Jan 28, 2015
@emberian emberian self-assigned this Mar 25, 2015
@emberian emberian removed their assignment Jan 5, 2016
bors added a commit that referenced this issue Jan 11, 2016
Fixes #18037 "TypedArena cannot handle zero-sized types".
Closes #17931 "improve chunk allocation scheme used by Arena / TypedArena".
Closes #22847 "TypedArena should implement Send". - N.B. Arena cannot implement Send, since it may contain non-Send values.
Closes #18471 "`Arena::alloc_copy_inner` (at least) should be renamed and made public." - Added `Arena::alloc_bytes`.
Closes #18261 "support clearing TypedArena with the chunks preserved". - Only the largest chunk is preserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-collections Area: `std::collection` I-slow Issue: Problems and improvements with respect to performance of generated code.
Projects
None yet
Development

No branches or pull requests

3 participants