Issue 53397 - desktop: FYI possible prelink orientated launch optimization
Summary: desktop: FYI possible prelink orientated launch optimization
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 680m124
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 90439
  Show dependency tree
 
Reported: 2005-08-16 14:26 UTC by caolanm
Modified: 2013-02-07 21:56 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
post build incantation to make launchers and intermediate library (2.04 KB, text/plain)
2005-08-16 14:27 UTC, caolanm
no flags Details
soffice patch (791 bytes, patch)
2005-08-16 14:27 UTC, caolanm
no flags Details | Diff
and update the signal installation to get crash-reporter lanched on a crash from a non "soffice" executable name (904 bytes, patch)
2005-11-03 11:48 UTC, caolanm
no flags Details | Diff
update for 3.3 (3.04 KB, patch)
2010-07-13 11:02 UTC, caolanm
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description caolanm 2005-08-16 14:26:43 UTC
On systems that support prelinking the attached soffice launch script and custom
launchers which take advantate of the pagein-* list of libraries results in a
measurable launch-time improvement.

Making a libsoffice.so with the contents of soffice.bin which also links to the
contents of pagein-common, and then a swriter.bin (etc) which links to this and
the additional contents of pagein-writer and making the soffice script run the
appropiate launcher and then putting an exit(0) on the callback from the
toplevel frame map to screen I get the following comparative results on
prelinked launchers...

time /opt/openoffice.org/program/soffice -writer

before:

runtime linker statistics:
  total startup time in dynamic loader: 40942538 clock cycles
            time needed for relocation: 2178365 clock cycles (5.3%)
                 number of relocations: 0
      number of relocations from cache: 9877
        number of relative relocations: 0
           time needed to load objects: 37853094 clock cycles (92.4%)

runtime linker statistics:
           final number of relocations: 39318
final number of relocations from cache: 98990

real    0m4.056s
user    0m2.868s
sys     0m0.504s

after:
runtime linker statistics:
  total startup time in dynamic loader: 60944357 clock cycles
            time needed for relocation: 2654702 clock cycles (4.3%)
                 number of relocations: 0
      number of relocations from cache: 2213
        number of relative relocations: 0
           time needed to load objects: 57179874 clock cycles (93.8%)

runtime linker statistics:
           final number of relocations: 11963
final number of relocations from cache: 21417

real    0m2.813s
user    0m1.720s
sys     0m0.336s
Comment 1 caolanm 2005-08-16 14:27:27 UTC
Created attachment 28823 [details]
post build incantation to make launchers and intermediate library
Comment 2 caolanm 2005-08-16 14:27:58 UTC
Created attachment 28824 [details]
soffice patch
Comment 3 caolanm 2005-11-03 11:48:29 UTC
Created attachment 31141 [details]
and update the signal installation to get crash-reporter lanched on a crash from a non "soffice" executable name
Comment 4 caolanm 2010-07-13 11:02:56 UTC
Created attachment 70588 [details]
update for 3.3