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

Reduce purge contention at max cache size #1908

Merged
merged 1 commit into from
May 11, 2024

Conversation

AntonyCorbett
Copy link
Contributor

I found that when the DiskCache limit is reached, almost every addition to the cache results in a Purge operation (which can be quite expensive). This is because the purge operation deletes files until the cache size is just below the limit. This PR is more aggressive and reduces the cache by 50% on purge.

Copy link
Owner

@d2phap d2phap left a comment

Choose a reason for hiding this comment

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

Thanks for the improvement!

@d2phap d2phap merged commit 98166f8 into d2phap:develop May 11, 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