You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using ccache can speed up local rebuilds even when the container layer
cache is invalidated, which is easy to happen. It also requires a less
complicated and less fragile setup than distcc (though distcc will
always make for faster first builds).
install_epics.sh still supports ccache-less setups, should that be
required.
On my machine, building an image with ccache for the first time took
~15m. Rebuilding it after invalidating the layer cache took only 3m36s.
The output of 'ccache -s' is reproduced below:
Cacheable calls: 3858 / 8743 (44.13%)
Hits: 1923 / 3858 (49.84%)
Direct: 1822 / 1923 (94.75%)
Preprocessed: 101 / 1923 ( 5.25%)
Misses: 1935 / 3858 (50.16%)
Uncacheable calls: 4885 / 8743 (55.87%)
Local storage:
Cache size (GB): 0.18 / 5.00 ( 3.70%)
It is not clear why the cache hits were below 50%, but it was still
enough to make a big difference in build times.
This was based on StackOverflow [1].
[1] https://stackoverflow.com/a/56833198
0 commit comments