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

Re-introduce the LRU-evicted identities in change set calculation #13331

Merged
merged 1 commit into from
Feb 2, 2025

Conversation

bep
Copy link
Member

@bep bep commented Feb 2, 2025

This is a follow up to db28695 -- that commit dropped the cache items evicted in the LRU process. This was done as performance optimization for large Hugo sites.

That made much sense, but now there's a slight chance that we miss out on a change when rebuilding.

This commit fixes this by applying the same logic to the evicted items as if they were still in the cache. This should preserve the performance gains in db28695 and close the hole for the possible false negatives.

This is a follow up to db28695 -- that commit dropped the cache items evicted in the LRU process. This was done as performance optimization for large Hugo sites.

That made much sense, but now there's a slight chance that we miss out on a change when rebuilding.

This commit fixes this by applying the same logic to the evicted items as if they were still in the cache. This should preserve the performance gains in db28695 and close the hole for the possible false negatives.
@bep bep force-pushed the feat/reworkcachestack branch from 80b2e8b to 41ebd6f Compare February 2, 2025 12:14
@bep bep merged commit 835579b into gohugoio:master Feb 2, 2025
6 checks passed
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.

1 participant