Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3493

Cache info about non-existant resources in org.apache.myfaces.application.ResourceHandlerImpl.createResource()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.1.6
    • None
    • Extension Feature
    • None
    • Linux FC15

    Description

      The existent resources are cached in the public Resource createResource(String resourceName, String libraryName, String contentType) method,
      which is good, but the information about resources, which are not existent ( deriveResourceMeta(loader, resourceName, libraryName, localePrefix) returned null ) is not cached.
      Thus at the next requests for the same resource the same resource lookup operations will happen, which may be expensive.
      In my case, for example (Tomcat + Spring + MyFaces + Tomahawk), for every html tag, lookup on the file system and in all classpaths (including ~30 jars) is performed (and failing), which de-gradates response time by factor of 25!

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            dmitry_kukushkin Dmitry Kukushkin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: