Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Add shrink_to_fit #37

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add shrink_to_fit #37

wants to merge 3 commits into from

Conversation

Kestrer
Copy link

@Kestrer Kestrer commented Jun 13, 2020

Closes #19. I didn't implement shrink_to since it is unstable.

I also simplified the implementation of clear, since I noticed it was possible; there are a few other minor changes from rustfmt too.

@s1341
Copy link

s1341 commented Sep 13, 2021

Any chance this will land? It makes a huge difference to memory usage.

s1341 added a commit to s1341/generational-arena that referenced this pull request Sep 13, 2021
Shamelessly stolen from fitzgen#37
@fitzgen
Copy link
Owner

fitzgen commented Sep 13, 2021

This needs a rebase, and I'd also feel more confident in the correctness of the free list handling if shrink_to_fit were integrated into the quickchecks. Happy to merge when those things happen.

@s1341
Copy link

s1341 commented Sep 14, 2021

I can manage the rebase, but need guidance regarding to the 'quickchecks'. What are they? Where are they?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement shrink methods
3 participants