Re: big number of relocations in gtk2 binding




On Feb 8, 2008, at 10:56 PM, muppet wrote:

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>

Oi, the 124k patch seems to have blown the mailman message size limit. Try this, instead:
http://asofyet.org/muppet/software/gtk2-perl/relocations.patch


--
Santa ate all the cookies!
  -- Zella's first, indignant words on Christmas morning, '07.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]