diff options
| author | Tetralux <tetralux@teknik.io> | 2020-10-26 00:12:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-26 00:12:31 +0000 |
| commit | 213864a50c653903f41f9e2f4a5e84b9a82b9ea0 (patch) | |
| tree | 87502825d42d024731f5954061a770b8b55c7cd9 /src/ptr_set.cpp | |
| parent | 4629754f7ced5df477eb017872ef65539db64a27 (diff) | |
Reuse container.Queue capacity when calling pop_front()
Currently, the Queue will never reuse it's full capacity if you call `pop_front`, even if you empty it before pushing more items.
With this change, if you empty the Queue with `pop_front`, then the offset will be set back to the start of the underlying array when you pop the last item.
Future pushes will then reuse the already-allocated--but now empty--space.
Diffstat (limited to 'src/ptr_set.cpp')
0 files changed, 0 insertions, 0 deletions