blockwork-eda / blockwork

An opinionated build environment for EDA projects
https://blockwork.intuity.io/
Apache License 2.0
14 stars 1 forks source link

Improvements for caching #97

Open Kotarski opened 4 weeks ago

Kotarski commented 4 weeks ago

Consider when/how to clear old cache

Could calculate a score for each entry (perhaps score = time-to-create / size / time-since-use) and choose not to cache items below some score threshold, and remove items with the lowest score when the cache reaches a pre-configured size. (#99 #103)

Allow transforms to configure caching

Transforms should be able to mark themselves as cache disabled, cache forced etc.

Consider best way to configure cache sizing

As of #103 cache target size is configured as part of the cache itself. We may want to move this to the site.yaml but that could vary by configuration. Perhaps a user.yaml is needed?

Kotarski commented 1 week ago

Some metadata added in #99

Kotarski commented 5 days ago

Score based pruning implemented in #103