Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8220633

Optimize CacheFSInfo

    XMLWordPrintable

Details

    • b14

    Description

      CacheFSInfo currently uses a single cache, and delegates to the non-caching getCanonicalFile/exists/isDirectory/isFile the first time any of those methods is called. Using separate caches avoids some unnecessary work.

      Also, exists/isDirectory/isFile can be implemented with a single call to get a BasicFileAttributes instead of three separate calls.

      Improving those details was observed to improve performance for compilations with very long classes.

      Attachments

        Activity

          People

            cushon Liam Miller-Cushon
            cushon Liam Miller-Cushon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: