Caching
Compiler cache
Quick answer
A compiler cache such as ccache or sccache stores compiled object files keyed on preprocessed source, so identical compilations are served from cache rather than re-run.
A compiler cache such as ccache or sccache stores compiled object files keyed on preprocessed source, so identical compilations are served from cache rather than re-run.
Why it matters
It works across branches and across machines, which makes it more powerful than a build-directory cache — a colleague's compile can serve your CI job.
Your next build could be twice as fast, at half the price
Start free. Migrating away is the same one line, and we publish that diff too.
Related
Artifact cacheAn artifact cache stores build outputs between CI runs so that unchanged work does not have to be recomputed.Cache evictionCache eviction is the removal of cache entries to stay within a size limit, usually by discarding the least recently used entries first.Cache hit rateCache hit rate is the proportion of cache lookups that find a usable entry, expressed as a percentage.Cache keyA cache key is the string that identifies a cache entry, typically built from a hash of the lockfiles that determine the cached content.