Skip to content

Conversation

@sjrd
Copy link
Member

@sjrd sjrd commented Jan 2, 2025

CI only for now. Based on #5098.

sjrd added 2 commits January 9, 2025 10:15
Previously, we had several reimplementations of the same basic
caching mechanisms. In particular, `cleanAfterRun()`-based removal
of caches not used in a given run.

In this commit, we introduce common caching utilities. The provide
common implementations of the various idioms that we use. This
simplifies all the use sites, which can now focus on their core
logic, instead of mixing it with caching mechanisms.

The abstraction is not zero-cost everywhere. It may introduce some
constant overhead.
This simplifies the emitter's `KnowledgeGuardian`, which can now
focus on its core logic without handling registrations and
invalidations.
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