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

Performance of InputStream.readAllBytes() could be improved

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 9, 10
    • core-libs
    • b01
    • Verified

        InputStream.readAllBytes() currently uses intermediate buffers of geometrically increasing size with a copy into each intermediate buffer at each stage. It is possible to improve the memory usage and performance using an alternate algorithm of storing a list of fixed size buffers and gathering those into a single buffer at the end.

              bpb Brian Burkhalter
              bpb Brian Burkhalter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: