[
https://jira.jboss.org/jira/browse/GTNCOMMON-8?page=com.atlassian.jira.pl...
]
Julien Viet updated GTNCOMMON-8:
--------------------------------
Description:
The class (written by myself :-) ) DefaultLocaleFormat prepopulates a Map<String,
Locale> cache via the class LocaleManager that delegates to the
Locale#getAvailableLocales(). The last call last about 2 seconds and is blocking.
This is called when portlets are deployed as it uses the locale stuff to populate locale
and bundle of a portlet container.
This is a very cheap way to save 2 seconds of boot time (on my machine again) and also
simplify the code (remove one not really useful class).
was:
The class (written by myself :-) ) DefaultLocaleFormat prepopulates a Map<String,
Locale> cache via the class LocaleManager that delegates to the
Locale#getAvailableLocales(). The last call last about 2 seconds and is blocking.
This is a very cheap way to save 2 seconds of boot time (on my machine again) and also
simplify the code (remove one not really useful class).
Remove unnecessary blocking method call (2s)
--------------------------------------------
Key: GTNCOMMON-8
URL:
https://jira.jboss.org/jira/browse/GTNCOMMON-8
Project: GateIn Common
Issue Type: Task
Reporter: Julien Viet
Assignee: Julien Viet
Fix For: 2.0.0-CR03
The class (written by myself :-) ) DefaultLocaleFormat prepopulates a Map<String,
Locale> cache via the class LocaleManager that delegates to the
Locale#getAvailableLocales(). The last call last about 2 seconds and is blocking.
This is called when portlets are deployed as it uses the locale stuff to populate locale
and bundle of a portlet container.
This is a very cheap way to save 2 seconds of boot time (on my machine again) and also
simplify the code (remove one not really useful class).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira