RFT: openoffice.org tweaks to speed up startup
Jakub Jelinek
jakub at redhat.com
Sat Oct 25 08:14:25 UTC 2003
Hi!
I've done some tweaks to OO.o to make it more prelink-friendly
(and thus to start up faster).
ftp://people.redhat.com/jakub/openoffice.org/
contains openoffice.org-1.1.0-3.1 package, with 2 differences
against 1.1.0-3 in rawhide:
1) there are 3 variants of the /usr/lib/openoffice/program/soffice.bin
binary (the actual OOo program), soffice.bin is a symlink to one of
them:
soffice1.bin should be the same as soffice.bin in 1.1.0-3
soffice2.bin instead indirectly links against another > 40 libraries
which are ALWAYS dlopened when soffice starts
soffice3.bin is like soffice2.bin, but unlike soffice2.bin, it has
all DT_NEEDED tags directly in the binary, while
soffice2.bin is just crt files and all the binary's
code plus most of the DT_NEEDED tags moved to
new shared library
2) IMHO there are too many wrapper scripts, so there is a change
in ooffice script to avoid /usr/lib/openoffice/program/soffice
script which does things like check for Solaris installed patches
and whatever else and instead just run the pagein and soffice.bin
binaries directly with right env variables and options.
If you have problems wit this change, just do:
perl -pi -e 's/# exec/exec/' /usr/bin/ooffice
and you'll get previous behavior
I'd like if you could test all 3 sofficeN.bin binaries on a prelinked system,
ie.:
1) as root: install the above package
2) as root: /etc/cron.daily/prelink
3) as normal user:
for N in 1 2 3; do
ln -sf soffice$N.bin /usr/lib/openoffice/program/soffice.bin
run OOo a couple of times, test. Measure startup time.
Run
LD_DEBUG=statistics /usr/lib/openoffice/program/soffice.bin private:factory/swriter
a couple of times
done
and tell me how do you feel it starts fast and average output of
LD_DEBUG=statistics (just the first 10 lines is enough) in each of the
3 cases.
Thanks.
Jakub
More information about the test
mailing list