Issue 109896 - shouldn't detect configuration at each invocation
Summary: shouldn't detect configuration at each invocation
Status: UNCONFIRMED
Alias: None
Product: performance
Classification: Code
Component: www (show other issues)
Version: current
Hardware: Unknown All
: P3 Trivial (vote)
Target Milestone: not determined
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-07 13:24 UTC by sophia
Modified: 2013-02-07 22:42 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
I instrumented the /usr/lib/openoffice/program/soffice script in order to know how much time it is needs to guess the configuration. (726 bytes, text/plain)
2010-03-07 13:25 UTC, sophia
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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.