On Feb 5, 2008, at 1:38 PM, Thierry Vignaud wrote:
Our current bindings force the dynamic linker to resolve a huge
number
of relocations as show by relinfo[1],
which has an impact on the startup time.
Maybe could we improve startup time through visbility hints and the
like?
$ relinfo.pl /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-
multi/auto/Gtk2/Gtk2.so
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/auto/
Gtk2/Gtk2.so: 3525 relocations, 15 relative (0%), 3857 PLT entries,
29 for local syms (0%), 0 users
How's this?
$ relinfo.pl blib/arch/auto/Gtk2/Gtk2.so
blib/arch/auto/Gtk2/Gtk2.so: 293 relocations, 225 relative (76%),
3848 PLT entries, 28 for local syms (0%), 0 users
The patch hits all but one .xs file, but only to change their
#include lines. All the magic is in the new header.
<relocations.patch>