Request attribute names are not cached which causes performance degredation
---------------------------------------------------------------------------
Key: MYFACES-2823
URL: https://issues.apache.org/jira/browse/MYFACES-2823
Project: MyFaces Core
Issue Type: Bug
Components: General
Affects Versions: 1.2.9
Environment: Tomcat 6.0.20 (with an SSL connector)
MyFaces 1.2.9
RichFaces 3.3.2
Java 1.6.0_15
Reporter: Sampo Savolainen
When rendering a simple request, MyFaces ends up calling
Request.getAttributeNames() 1000+ times. This causes performance degredation in
cases when it is not trivial for the container to produce the names. This is
the case for example with Tomcat when there is an SSL connector: reading the
attribute names requires tomcat to check if there are peer certificates.
I will attach a screenshot from a profiling session where a substantial portion
of the server processing went into
org.apache.myfaces.context.servlet.RequestMap.getAttributeNames(). This
screenshot shows a backtrace from one JSSE accessor called by
getAttributeNames() up to the faces components where the calls are initiated
from.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.