Improve JrtPath::getResolved fast-path test

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 9
    • Component/s: tools
    • b35

      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.

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

              Created:
              Updated:
              Resolved: