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

Improve performance of age limit trimming #224

Merged
merged 6 commits into from
Jun 8, 2018

Conversation

garrettmoon
Copy link
Collaborator

This does two things:

  1. Before this patch, PINCache was naively scheduling a task to trim to age limit recursively every time the age limit was set. This makes it so recursive calls are canceled when it detects another recursive call has been kicked off. This is still less than ideal :/
  2. Trimming (mistakenly) used to be a high priority task. Now the age limit itself is set with a high priority, but the trimming is done at a low priority.

@ghost
Copy link

ghost commented Jun 7, 2018

🚫 CI failed with log

This does two things:
1. Before this patch, PINCache was naively scheduling a task to trim to age limit *recursively* every time the age limit was set. This makes it so recursive calls are canceled when it detects another recursive call has been kicked off. This is still less than ideal :/
2. Trimming (mistakenly) used to be a high priority task. Now the age limit itself is set with a high priority, but the trimming is done at a low priority.
@garrettmoon garrettmoon force-pushed the improveDateTrimmingPerformance branch from 2c2072c to 9200a55 Compare June 7, 2018 17:36
Copy link
Collaborator

@maicki maicki left a comment

Choose a reason for hiding this comment

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

Nice

@ghost
Copy link

ghost commented Jun 7, 2018

🚫 CI failed with log

@ghost
Copy link

ghost commented Jun 7, 2018

🚫 CI failed with log

@ghost
Copy link

ghost commented Jun 7, 2018

🚫 CI failed with log

@pinterest pinterest deleted a comment Jun 7, 2018
@pinterest pinterest deleted a comment Jun 7, 2018
@ghost
Copy link

ghost commented Jun 7, 2018

🚫 CI failed with log

@ghost
Copy link

ghost commented Jun 7, 2018

🚫 CI failed with log

@appleguy
Copy link
Contributor

appleguy commented Jun 7, 2018 via email

@garrettmoon garrettmoon merged commit cee9c69 into master Jun 8, 2018
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.

4 participants