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

JarFile.getBytes could use InputStream.readNBytes

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b86
    • Introduced In Version:
      9
    • Resolved In Build:
      b89
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        A 2%-4% regression was measured with footprint3-server in JDK9-b86 on all platforms.

        JDK-8138978 removed sun.misc.IOUtils and left JarFile.getBytes using InputStream.readAllBytes, which is sub-optimal when the ZipEntry size is known.

        Using readNBytes might improve startup and early footprint characteristics.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: