Apache OpenOffice (AOO) Bugzilla – Issue 84276
avoid repeated loading and unloading of localedata lib
Last modified: 2013-08-07 15:01:53 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 ).
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.
->Eike, please verify in CWS chart15.
Reviewed code change in cws chart15 and found good.
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).
Present in master. closing.