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

JarFile.getBytes could use InputStream.readNBytes

    XMLWordPrintable

Details

    • b86
    • 9
    • b89
    • generic
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: