Apache OpenOffice (AOO) Bugzilla – Issue 53397
desktop: FYI possible prelink orientated launch optimization
Last modified: 2013-02-07 21:56:05 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
Created attachment 28823 [details] post build incantation to make launchers and intermediate library
Created attachment 28824 [details] soffice patch
Created attachment 31141 [details] and update the signal installation to get crash-reporter lanched on a crash from a non "soffice" executable name
Created attachment 70588 [details] update for 3.3