-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: bridge-impl-2.1.0, bridge-impl-3.1.0, bridge-impl-4.1.0
-
Component/s: Liferay Faces Bridge Impl / Demos / Tests
-
Labels:None
The VisualVM profiler indicates that the RequestScopeMap.getPropertyNames() method is being called more than is necessary. This is probably because AbstractPropertyMap.contains(Object) is calling getPropertyNames() which can be inefficient for methods like RequestScopeMap.getPropertyNames() which in turn calls PortletRequest.getAttributeNames() (required to return a new java.util.Enumeration each time it is called).