[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] fast compiles!
From: |
Derek Scherger |
Subject: |
[Monotone-devel] fast compiles! |
Date: |
Mon, 26 Apr 2004 22:18:42 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040225 |
I seem to remember reading something somewhere about monotone's compile times being an
issue and from what I've seen I would definitely agree. A trivial change to commands.cc
takes close to a minute to compile on my dual Athlon 2000 which has 3GB of RAM to work with.
I've just installed Andrew Tridgell's ccache package (http://ccache.samba.org/) and it
makes a *huge* difference.
WITHOUT ccache
$ touch commands.cc
$ time make
make all-recursive
make[1]: Entering directory `/home/derek/monotone/head'
Making all in po
...
make[2]: Leaving directory `/home/derek/monotone/head'
make[1]: Leaving directory `/home/derek/monotone/head'
real 1m13.906s
user 1m12.626s
sys 0m1.145s
WITH ccache
$ touch commands.cc
$ time make
make all-recursive
make[1]: Entering directory `/home/derek/monotone/head'
Making all in po
...
make[2]: Leaving directory `/home/derek/monotone/head'
make[1]: Leaving directory `/home/derek/monotone/head'
real 0m3.977s
user 0m3.469s
sys 0m0.376s
That's something like an 18x speedup.
Hope this is helpful!
--
Cheers,
Derek
- [Monotone-devel] fast compiles!,
Derek Scherger <=