Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shrink upsert allocation #280

Merged
merged 2 commits into from
Sep 10, 2020

Conversation

frankmcsherry
Copy link
Member

This PR removes a memory leak in the upsert priority queue, which would never reduce its size even when drained. If there is sufficient waste (a factor of four) the queue will now scale down its allocation to fit.

There are more performant ways of doing this with a custom heap implementation (as a sequence of geometrically sized allocations) but for the moment let's just start by returning the memory.

cc @wangandi

@frankmcsherry frankmcsherry merged commit 2667ac2 into TimelyDataflow:master Sep 10, 2020
This was referenced Oct 29, 2024
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.

2 participants