3 ms·
Why compile code when ccache faster
by Devorlon 6mo ago
Why compile code when ccache faster
- amelius 6mo agoDoes ccache fetch compiled code from a central server using checksums?
- 01HNNWZ0MV43FF 6mo agosccache can, but most of us don't have access to an sccache instance: https://github.com/mozilla/sccache https://github.com/mozilla/sccache
- mmastrac 6mo agosccache is pretty easy to set up and you can back it with S3, memcache, redis, etc.
- mbitsnbites 6mo agoSame 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, ...).
- firesteelrain 6mo agoWe use sccache on prem with MinIO.
- fishgoesblub 6mo agobuildcache, the program the post is about can use a remote server for storing the cache.
- mbitsnbites 6mo agoAnd a local cache (kind of level 1 and level 2 caches)