Apache OpenOffice (AOO) Bugzilla – Issue 109896
shouldn't detect configuration at each invocation
Last modified: 2013-02-07 22:42:47 UTC
At each invocation of oocalc, oowriter or ooimpress, the /usr/lib/openoffice/program/soffice shell script is executed. This script will quite always guess the same environment variables. Moreover, guessing those values is time consuming. I think we could cache the below environment settings into a /var/lib/openoffice/basis3.1/program/environment.sh file: ----- FILE_LOCKING=auto OPENGL_SUPPORT=no SAL_ENABLE_FILE_LOCKING=1 SAL_NOOPENGL=true JITC_PROCESSOR_TYPE=6 sd_cwd=/usr/lib/openoffice/program sd_binary=/usr/lib/openoffice/program/oosplash.bin ----- Those environment settings could be calculated again by a package manager trigger or a daily cron task. On my host the cold startup of Open Office Writer last ~24 seconds and guessing the environment variables is quite 30% of the cold startup time !
Created attachment 68193 [details] I instrumented the /usr/lib/openoffice/program/soffice script in order to know how much time it is needs to guess the configuration.
This bug still occurs on 3.2 version.