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

(ch) ChannelInputStream could override readAllBytes

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b18
    • Verification:
      Verified

      Description

      A DESCRIPTION OF THE PROBLEM :
      With JDK-8264777, i suggested to overload optimized FileInputStream::readAllBytes.

      The same improvement could be done for java.nio's java.nio.file.Files.newInputStream().readAllBytes() - which is still as slow as before.

      I suggest to overload sun.nio.ch.ChannelInputStream::readAllBytes with the same algorithm as FileInputStream::readAllBytes.
      See JDK-8264777 / FileInputStream::readAllBytes of JDK17 for details.


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bpb Brian Burkhalter
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: