Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
171: Shrink overallocated capacity if a number gets a lot smaller. r=cuviper a=tczajka If a number gets below 1/4 of capacity, shrink_to_fit. Since Vec grows by 2, this amortizes well for any sequence of sizes. Co-authored-by: Tomek Czajka <tczajka@gmail.com>
- Loading branch information