]> git.ipfire.org Git - pakfire.git/commit
ccache optimizations: Use /tmp and enable compression.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Mar 2013 00:20:54 +0000 (01:20 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Mar 2013 00:20:54 +0000 (01:20 +0100)
commit27f559296e5301c16e2be42acfde3bcf7e374290
tree8a171f8cbb49753a09fc5c4ec45dea53191a4bab
parent4252a54980c0996a9b46ad2043aefe0910bc5da7
ccache optimizations: Use /tmp and enable compression.

When the cache is on an NFS share, a lot of preprocessed files
will be transferred to that share, because ccache usually uses
$CCACHE_DIR/tmp as directory for its temporary files.
/tmp is always local and only the final data has to be live in
the cache is transferred over the wire.

To decrease the size of the cache, we enable compression. That
will cost a bit of CPU performance, but processors are usually
very fast nowadays and the bottleneck when compiling code is IO.
examples/builder.conf
python/pakfire/builder.py