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

[perf] Negative-Cache whether a file exists in ExternalContextResourceLoader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.11
    • 2.3-next-M5
    • None
    • None

    Description

      I'm seeing many sun.nio.fs.UnixException being thrown in the underlying code because ExternalContextResourceLoader.libraryExists calls ExternalContext.getResource which in the end checks if a file exists on the FS. I'd suggest when the project stage is PRODUCTION, this should be cached. Maybe this could be done by installing an ExternalContextWrapper that caches all resource lookups? I just see that parsing a XHTML causes many exceptions to be thrown internally which negatively affects performance.

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            christian.beikov Christian Beikov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: