This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
discard slices rather than reslicing them
In a previous version of this, I thoughtfully resliced slices to [:0] rather than allocating. That's a great idea, except that you don't necessarily ever see a given shard again. If you don't see that shard again, or if you don't get as many items in it, all the old record pointers are still sitting there in reachable parts of the slice's backing store, preventing them from ever being garbage collected.
- Loading branch information