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

fix(task/scheduler): Reuse slices built by iterator to reduce allocations #17384

Merged
merged 2 commits into from
Mar 24, 2020

Conversation

brettbuddin
Copy link
Contributor

@brettbuddin brettbuddin commented Mar 23, 2020

Reuse the the toDelete and toInsert slices within the TreeScheduler to reduce the allocation churn when creating iterators for the B-Tree ascension.

This is an intermediate step to relieve some of the memory usage. We will be going farther than this in how we handle this iterator in the upcoming TreeScheduler refactor.

📎 influxdata/idpe#6479

Copy link
Contributor

@GeorgeMac GeorgeMac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@brettbuddin brettbuddin merged commit 5482cc3 into master Mar 24, 2020
@brettbuddin brettbuddin deleted the bb/reuse-slices branch March 24, 2020 14:40
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