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
I noticed that sccache is a lot slower that ccache on a clean rebuild (make clean && make). I think this is due to the following effects:
In addition to hashing the preprocessor output, ccache also collects all preprocessor dependencies (either from parsing the preprocessor's line directive or the output of -MD), then hashes those files and writes them into the cache as a "manifest" file. Next time ccache gets invoked on the file, it looks whether any of those file have changed and if not, doesn't need to invoke the preprocessor. Ideally, it doesn't even need to rehash but consider file metadata whether a file has changed.
ccache has an option that stores the object files uncompressed. On a cache hit, it just creates a hard link (or clone on CoW file systems) to that file. This is also friendler for SSDs for not wasting write cycles. Note the some build systems may modify files inplace (eg. when executing strip), so ccache removes write permission to hardlinked files in the cache.
Could those two features also be implemented in sccache?
Activity
feat: add file_clone (reflink/CoW) mode for the local disk cache
feat: add file_clone (reflink/CoW) mode for the local disk cache
feat: add file_clone (reflink/CoW) mode for the local disk cache
feat: add file_clone (reflink/CoW) mode for the local disk cache