I looked a bit closer, and for objects build *without* debugging, the
difference is not that large at all, gold is only about twice as fast.
(8 vs. 20 seconds)
I re-configured with --enable-debug (for everything), and did a
partial rebuild (re-compiling whatever needed to be recompiled after a
fresh pull, which did include a lots of stuff that goes into
libmerged).
Now linking libmergedlo.so with -fuse-ld=gold takes 1 min 40 s, of
which 14 s user, 13 s sys (which I guess means it was mainly I/O
bound, my machine has just 2 GB memory). With -fuse-ld=bfd it takes 3
min 15 s (59 s user, 5 s sys).
With all objects built with debugging information the difference would
presumably be much larger.
So using gold does indeed seem to be useful, but only for builds
including debugging information.
--tml
Context
- Using the gold linker (Was: Android progress?) · Tor Lillqvist
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.