]> git.ipfire.org Git - thirdparty/ccache.git/commit
Use short type suffix for cache files
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 21 Sep 2020 05:59:50 +0000 (07:59 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 23 Sep 2020 07:41:38 +0000 (09:41 +0200)
commitb16001a67f4389956ef6e7ccf7d8023684b57119
treec72f1e51a57b4d26607a7e188638c9605f6953f3
parent9ce6f76a27d0c1a42d1d16805913850352ae804f
Use short type suffix for cache files

x.result -> xR
x.manifest -> xM
x_n.raw -> xnW

Reducing file lengths should be beneficial since it reduces the number
of needed system calls when scanning many files in the cache. The effect
is very small but there is no real downside.

A one letter suffix is kept to allow for making decisions based on file
type without having to open the file. The suffix is uppercase so that is
doesn’t clash with pre-4.0 *.stderr files stored in the cache.
src/CacheFile.cpp
src/Context.hpp
src/Manifest.cpp
src/Result.cpp
test/suites/base.bash
test/suites/cache_levels.bash
test/suites/cleanup.bash
test/suites/depend.bash
test/suites/direct.bash
test/suites/no_compression.bash