Skip to content

Conversation

@rafaeleyng
Copy link
Contributor

Cleanup the slice after flush to allow the GC to collect the items in the slice.

If we don't do this, a moment of high load could put pointers to items on the whole buffer, and the pointers on the last positions would never be cleaned up until a new moment of high load.

@mbenford mbenford merged commit 9b86919 into master Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants