[ https://issues.apache.org/jira/browse/MYFACES-4202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16362994#comment-16362994 ]
Eduardo Breijo commented on MYFACES-4202: ----------------------------------------- I think what we should avoid calling on every request ClassUtils.simpleClassForName() which will end up calling Class.forName(). By caching FacesServletMapping, do we avoid that? How do you propose caching the FacesServletMapping? > [perf] FacesServletMappingUtils.isFacesServlet calls > ClassUtils.simpleClassForName on every request > --------------------------------------------------------------------------------------------------- > > Key: MYFACES-4202 > URL: https://issues.apache.org/jira/browse/MYFACES-4202 > Project: MyFaces Core > Issue Type: Improvement > Components: JSR-372 > Affects Versions: 2.3.0-beta > Reporter: Eduardo Breijo > Assignee: Eduardo Breijo > Priority: Major > Fix For: 2.3.0 > > > FacesServletMappingUtils.isFacesServlet is invoked on every request. This > means that ClassUtils.simpleClassForName() will also be invoked on every > request. We need to cache the boolean value for each servletClassName to > improve performance. -- This message was sent by Atlassian JIRA (v7.6.3#76005)