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

Enable cache eviction on specific document state #1659

Merged
merged 2 commits into from
Oct 2, 2024
Merged

Conversation

msujew
Copy link
Member

@msujew msujew commented Sep 2, 2024

Right now, our caches only evict for documents that have actually changed. However, those documents with direct references to those files (see isAffected computation) aren't evicted from cache. This change allows to perform more fine-grained eviction behavior on caches. This came to my mind when helping with #1652.

@msujew msujew added the polish Some feature needs improvement label Sep 2, 2024
Copy link
Contributor

@spoenemann spoenemann left a comment

Choose a reason for hiding this comment

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

👍

packages/langium/src/utils/caching.ts Outdated Show resolved Hide resolved
@spoenemann spoenemann merged commit dc18342 into main Oct 2, 2024
5 checks passed
@spoenemann spoenemann deleted the msujew/cache-state branch October 2, 2024 06:47
@spoenemann spoenemann added this to the v3.3.0 milestone Oct 2, 2024
@JohannesMeierSE
Copy link
Contributor

FYI: We need this feature in Typir. Therefore we are looking forward to a Langium release with this feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
polish Some feature needs improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants