Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7577

FS Resource Provider slow due to frequent file stat access

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • File System Resource Provider 2.1.12
    • JCR
    • None

    Description

      The file-system resource provider is relatively slow, because it frequently checks for file existence, for whether a file is a directory or a file and for the last modified time.

      Normally this is not an issue, but in a setup where context aware configurations are used via FSRP, there are a lot of lookups for non-existing resources, which are not cached in any way. In the scenario I experienced, the same lookups occurred frequently during a single HTTP request and caused page-rendering to take ~5s.

      To improve this, I propose to cache file stats, including non-existence of a file.

      Attachments

        Activity

          People

            jsedding Julian Sedding
            jsedding Julian Sedding
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: