[Libreoffice] a faster gnumake ? ...

Bjoern Michaelsen bjoern.michaelsen at canonical.com
Mon Apr 4 08:30:11 PDT 2011

Hi Michael, Hi all,

On Mon, 04 Apr 2011 15:07:32 +0100
Michael Meeks <michael.meeks at novell.com>

> stats	file
>    1428 /data/opt/libreoffice/bootstrap/clone/writer/sw/inc/swdllapi.h

find solver/300/unxlngx6.pro/workdir/Dep/CxxObject/sw|xargs grep
swdllapi.h|wc -l

Thats too close to be a accidental. It seems like GNU make restats
every target everytime it gets named as a dependency without any
caching (or expecting the OS to do the caching).

Another thing I came across:
find solver/300/unxlngx6.pro/workdir/Dep/CxxObject/sw|xargs grep
swdllapi.h|sort|uniq|wc -l

It seems that the dep files generated by gcc have duplicates. This
a) be fixed in gcc itself.
b) be fixed by sorting out duplicates when generating the dep file. This
   could be done in the solenv/gbuild/processdeps.awk(*) script and
   would then likely result in a 100% speedup.



(*) Currently only used on Windows as it mainly normalizes some cygwin
paths. But as it also makes absolute paths relative to the $(SRCDIR),
$(WORKDIR), $(OUTDIR), $(REPODIR) roots, you do not have to generate
all dep files because of absolute paths when moving your tree in the
filesystem, which is nice to have on all platforms IMHO.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110404/efc024d3/attachment.pgp>

More information about the LibreOffice mailing list