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

JarFile.getBytes could use InputStream.readNBytes

XMLWordPrintable

    • b86
    • 9
    • b89
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved: