Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8217675 (str) optimize StringBuilder.append(CharSequence, start, end)
  3. JDK-8224986

(str) optimize StringBuilder.append(CharSequence, int, int) for String arguments

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 13
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b24

      Backports

        Description

        By specializing for String arguments so that they can use System.arraycopy directly when appropriate, provides a small speed-up in microbenchmarks.

        An intrinsic for append(String, int, int) might still be outperforming this, but it'll be a non-trivial task to implement. The parent RFE is left open for such an investigation.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: