Issue 109896

Summary: shouldn't detect configuration at each invocation
Product: performance Reporter: sophia <jerome.bouat>
Component: wwwAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: current   
Target Milestone: not determined   
Hardware: Unknown   
OS: All   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
I instrumented the /usr/lib/openoffice/program/soffice script in order to know how much time it is needs to guess the configuration. none

Description sophia 2010-03-07 13:24:00 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 !
Comment 1 sophia 2010-03-07 13:25:59 UTC
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.
Comment 2 sophia 2010-05-16 14:36:54 UTC
This bug still occurs on 3.2 version.