hi! i picked that patch and did some builds with the resulting ccache.
first of all, great work! i didn't ecounter even one problem with the ccache on windows. it's seamless plug and play (except that you should raise the max cache size - 2GB could be a nice number). it even works in SO/4nt environment when specifying the cache location with "c:/tmp" (note the "/"). unfortunately it doesn't play well with preconpiled header. it's possible in general (CCACHE_CPP2=TRUE and disabling ccache in <module>/inc) but first tries indicate that it's slower than each of the methods alone. but this may depend on the actual usecase. looking a the numbers, for a single build pch is to prefer. but when doing development or several milestones in a row, ccache might be the better choice. attached some times for m218 builds done in an OOo environment. tschau... ause Jan Holesovsky wrote: > Hi, > > For those building on Win32, it might be interesting that I've extended the > ccache [http://ccache.samba.org/] to deal with MSVC. I've done it during our > Novell HackWeek [http://idea.opensuse.org]; I hope you'll enjoy it as much as > I enjoyed the hacking on that ;-) > > It is easy to use, instead of 'guw.exe cl.exe', you'll use 'guw.exe > ccache.exe > cl.exe' in your CXX environment variable after having sourced the > environment. To see the ccache statistic, use ccache -s. You can override > the directory where is the cache stored by exporting CCACHE_DIR="c: > \where\you\want" Should you find any bugs, please send me patches :-) > > I've not measured the speedup too much yet, but it was >20% in vcl compared > to > non-ccache run, the penalty of the initial fill of the cache was like 17% > [compared to non-ccache]. Would be great if someone did a measurement of the > entire build. > > The patch and the binary: > > http://artax.karlin.mff.cuni.cz/~kendy/ccache/ > > More info: > > http://idea.opensuse.org/content/ideas/cross-compile-openoffice.org-for-win32-on-linux > > Regards, > Jan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
local m218 vcl with "build -P4 -- -P4" nothing to do 0m 9s filling ccache 3m 23s same build again 1m 50s pch compile 2m 31s plain compile 2m 35s local m218 svx with "build -P4 -- -P4" nothing to do 0m 15s filling ccache 15m 11s same build again 8m 14s pch compile 9m 12s plain compile 11m 18s one file (ainfotext.cxx) touched plain compile 0m 45s pch compile 0m 56s ccache compile 0m 45s local m218 complete with "build -P4 -- -P4" ccache first build 194m 37s cache size ~1GB ccache second build 127m 59s pch 133m 36s no ccahce or pch 154m 52s
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]