Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Completed
-
5.1 EE SP4 (5.1.7), 5.2 EE SP3 (5.2.7)
-
All
Description
The performance of PortletPreferences has been improved. Specifically, PortletPreferencesLocalServiceImpl.getPreferences(), always always returns a clone of PortletPreferencesImpl. This is needed because multiple users may try to modify the preference. However, in most situations, users are only reading from PortletPreferencesImpl. If the user is only reading the preference, the clone protection is not necessary and is an unnecessary memory overhead. This updates allows PortletPreferencesImpl to lazily create it's clone when the preference is first modified.
Attachments
Issue Links
- is related to
-
LPS-6816 Lazy clone PortletPreferencesImpl's inner Map for performance
- Closed