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

Improve JrtPath::getResolved fast-path test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 10
    • 9
    • tools
    • b35

    Description

      The fast-path in JrtPath tests for whether the path contains '.', which is suboptimal: most paths will have a dot even though they don't need to be manipulated, so many paths will go through the slow-path for no reason.

      Testing if the path either contains "./" or ends with a dot will ensure only paths that need to be manipulated have to take the slow path.

      Attachments

        Activity

          People

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: