[
https://issues.apache.org/jira/browse/MYFACES-4269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16701125#comment-16701125
]
Thomas Andraschko commented on MYFACES-4269:
--------------------------------------------
Added a new cache, which even caches the mappings.
We need to mappings for each request, maybe multiple times and Tomcat always
recreates the mappings -> new HashSet everytime, some lookup time every time,
...
> [perf] getServletRegistrations is slow and not cached
> -----------------------------------------------------
>
> Key: MYFACES-4269
> URL: https://issues.apache.org/jira/browse/MYFACES-4269
> Project: MyFaces Core
> Issue Type: Improvement
> Affects Versions: 2.3.2
> Reporter: Thomas Andraschko
> Priority: Major
> Fix For: 2.3.3
>
> Attachments: MYFACES-4269.patch, MYFACES-4269_v2.patch
>
>
> seems like servletContext#getServletRegistrations does internal always a new
> lookup instead of caching it (on tomcat 9.x)
> we can simple cache the FacesServletRegistration
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)