Why compile code when ccache faster
amelius20 hours ago | | | parent | | on: 47757529
Does ccache fetch compiled code from a central server using checksums?
fishgoesblub19 hours ago | | | parent | | on: 47758058
buildcache, the program the post is about can use a remote server for storing the cache.
mbitsnbites12 hours ago | | | parent | | on: 47759201
And a local cache (kind of level 1 and level 2 caches)
sccache can, but most of us don't have access to an sccache instance: https://github.com/mozilla/sccache
firesteelrain15 hours ago | | | parent | | on: 47758423
We use sccache on prem with MinIO.
mmastrac17 hours ago | | | parent | | on: 47758423
sccache is pretty easy to set up and you can back it with S3, memcache, redis, etc.
mbitsnbites11 hours ago | | | parent | | on: 47759758
Same with BuildCache, except you also get a fast local cache so you effectively have an L1 and an L2 cache.

In fact, since you also have super fast "direct mode" caching that bypasses the preprocessor (like ccache but unlike sccache), BuildCache really has three logical levels of cache: direct, preprocessor and remote (S3, redis, ...).