Issue 84276 - avoid repeated loading and unloading of localedata lib
Summary: avoid repeated loading and unloading of localedata lib
Status: CLOSED FIXED
Alias: None
Product: Internationalization
Classification: Code
Component: code (show other issues)
Version: 680m235
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ooo
QA Contact: issues@l10n
URL:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2007-12-05 17:39 UTC by IngridvdM
Modified: 2013-08-07 15:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description IngridvdM 2007-12-05 17:39:04 UTC
In module i18npool the library  localedata_en is loaded and unloaded very often
for example when using the break iterator.
With integration of issue 75466 this leads to a performance problem for example
for chart view creation where text shapes are generated ( see also follow up
issue 83243 ).
Comment 1 IngridvdM 2007-12-05 18:09:32 UTC
Fixed in CWS chart15.
I replaced member lookupTable by a long living singleton singleLookupTableRef in
class LocaleData in module i18npool. Thus each needed lib is only loaded once.
Comment 2 IngridvdM 2007-12-06 12:20:36 UTC
->Eike, please verify in CWS chart15.
Comment 3 ooo 2007-12-11 11:32:28 UTC
Reviewed code change in cws chart15 and found good.
Comment 4 bjoern.milcke 2007-12-14 14:07:17 UTC
Note: there was still a problem on Linux (open Writer document, Quit => Loop). I
fixed that by using a different singleton-implementation. SB helped me with
that, and IHA and ER reviewed the changed version.

I did some test: the loop on Linux no longer occurs, opening the number
formatter in Calc and traveling through the list of languages adapts the list of
available formats and gives no assertions (checked on wntmsci10 non-pro version).
Comment 5 ooo 2008-05-30 17:07:45 UTC
Present in master. closing.