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

Add microbenchmark for array copying/clearing/resizing

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 13
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b19

      Description

      We never checked in a microbenchmark for
      JDK-6428387: array clone() much slower than Arrays.copyOf
      but now that we have jmh support, we should.

      We can reaffirm that using arraycopy is much faster than the equivalent loop.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              martin Martin Buchholz
              Reporter:
              martin Martin Buchholz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: