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

Examine performance overhead of Character.digit for common radixes

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      While examining the patch for JDK-8196334 it was made apparent that calling into Character.digit(ch, 16) does not eliminate all branches, which meant that specializing the lookup of hexadecimal in UUID was still profitable.

      Investigate if there's something we can do to optimize Character.digit(ch, 16) (and likely digit(ch, 10)) and consolidate logic that specialize for certain radixes - such as in UUID.fromString

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: