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

Optimize Character.toString

    XMLWordPrintable

Details

    • b17

    Backports

      Description

        Sergey Tsypanov writes:

        "I think we can reduce allocation rate for j.l.Character.toString() by calling String.valueOf(char) instead of String.valueOf(char[]).

        Current implementation creates char[] with one char which is later decoded into byte[]."

        https://mail.openjdk.java.net/pipermail/core-libs-dev/2020-March/065433.html

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: