mozilla
sccache
BlogDocsChangelog

Avoid double-caching when ccache is installed in PATH

#2524
Comparing
avikivity:disable-ccache
(
af93738
) with
main
(
d9d2eb6
)
CodSpeed Performance Gauge
0%
Untouched
11

Benchmarks

Passed

digest_with_delimiters
benches/sccache_bench.rs
CodSpeed Performance Gauge
0%
8.8 µs8.8 µs
lru_cache_mixed_workload
benches/sccache_bench.rs
CodSpeed Performance Gauge
0%
2.2 ms2.2 ms
lru_cache_get_hit
benches/sccache_bench.rs
CodSpeed Performance Gauge
0%
975.8 µs974.7 µs
cache_key_generation
benches/sccache_bench.rs
CodSpeed Performance Gauge
0%
90.8 µs90.8 µs
time_macro_finder_chunked
benches/sccache_bench.rs
CodSpeed Performance Gauge
0%
971.8 µs971.8 µs
hash_large_data
benches/sccache_bench.rs
CodSpeed Performance Gauge
0%
9.3 ms9.3 ms
lru_cache_eviction
benches/sccache_bench.rs
CodSpeed Performance Gauge
0%
3.4 ms3.4 ms
time_macro_finder_no_macros
benches/sccache_bench.rs
CodSpeed Performance Gauge
0%
3 ms3 ms
time_macro_finder_with_macros
benches/sccache_bench.rs
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
lru_cache_insert
benches/sccache_bench.rs
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms
digest_incremental_updates
benches/sccache_bench.rs
CodSpeed Performance Gauge
0%
20.5 µs20.5 µs

Commits

Click on a commit to change the comparison range
Base
main
d9d2eb6
+0.04%
Avoid double-caching when ccache is installed in PATH On Linux, ccache is typically installed in $PATH as /usr/lib64/ccache/g++ or similar. If we keep it there, all compilations will be cached by both ccache and sccache. While the user could easily disable ccache with CCACHE_DISABLE, it's reasonable to assume many will forget and will have their disk space doubly consumed by both caches. Better to recognize this and disable ccache under sccache. This patch does this by removing the ccache binary paths from $PATH. Fixes #2519
af93738
22 days ago
by avikivity
© 2026 CodSpeed Technology
Home Terms Privacy Docs