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

Improve java.net.URI$Parser startup characteristics

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • core-libs
    • b101
    • generic
    • generic

      Creating URI objects in interpreted code is rather costly (14-50 us/op), mostly due to a number of methods in URI$Parser wrapping simple methods on the input String.

      Inlining some of the simplest of these methods (charAt/substring) improves interpreted code 15-30% without affecting generated code quality.

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

              Created:
              Updated:
              Resolved: