Issue 53397

Summary: desktop: FYI possible prelink orientated launch optimization
Product: General Reporter: caolanm
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, mmeeks, oo
Version: 680m124   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 90439    
Attachments:
Description Flags
post build incantation to make launchers and intermediate library
none
soffice patch
none
and update the signal installation to get crash-reporter lanched on a crash from a non "soffice" executable name
none
update for 3.3 none

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