[Libreoffice] [new EasyHack] remove superfluous and duplicate include paths
Bjoern Michaelsen
bjoern.michaelsen at canonical.com
Sat Jul 23 07:00:26 PDT 2011
Hi all,
I added a new EasyHack:
superfluous include paths can slow the build down by quite a measureable
amount. With the integration of gnumake4 it is possible to set CXXFLAGS
on the compile (in gbuild modules).
Thus on Linux, with:
make CXXFLAGS="-v" -srj30 -l9 2>&1 | grep nonexistent | sort | uniq
one can get an idea of include paths, that might be superfluous. But
beware of paths that might still be needed on other platforms!
Also ordering the include paths (and removing dupes) might improve
performance a bit (and make the output a lot more readable).
https://bugs.freedesktop.org/show_bug.cgi?id=39491
Best,
Bjoern
--
https://launchpad.net/~bjoern-michaelsen
More information about the LibreOffice
mailing list