Leonardo Uribe created MYFACES-3778: ---------------------------------------
Summary: [perf] cache url and request path for default Resource implementations Key: MYFACES-3778 URL: https://issues.apache.org/jira/browse/MYFACES-3778 Project: MyFaces Core Issue Type: Improvement Components: JSR-344 Reporter: Leonardo Uribe Assignee: Leonardo Uribe Checking performance of the latest 2.2.x code, I have found that both url and request path for default Resource instances are calculated over and over, but they never change. The reason is you cannot add resources to the path dynamically, which means all resources are static and does not change over application lifetime, so it is safe to store these two values in the cache and reuse them. The only side effect detected is if two mappings (prefix and suffix) are used on the same application, the request path for a resource will not be according to the current mapping, but that's ok because one or the other should just the same. This will improve performance a bit. The reason is before this patch, each Resource instace requires calculate the url and the request path. This is relevant for composite components, because each composite component requires create 1 Resource instance each time it is instantiated. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira