[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fine-grained caching
- Subject: Re: Fine-grained caching
- From: Chris Warburton
- Date: Sat, 10 Jun 2017 14:29:37 +0100
- In-reply-to: <abef7d975f2a5e93-0-artemis@nixos>
- References: <abef7d975f2a5e93-0-artemis@nixos>
As a first step, we can separate the cache-reading from the result-calculating:
- The generate functions are the only place where we calculate the results.
- The generate functions are only called from their scripts (and tests).
- The normal function checks for a cache file, like now, but aborts if not
found.
This way, we can force the expensive calculations to only be run once, while
generating the cache, and for everything else to use the cache.