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

Lazily allocate skip buffer in InflaterInputStream

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • P4
    • 19
    • None
    • core-libs
    • None

    Description

      Currently a new, temporary 512-bytes buffer is allocates for every InflaterInputStream. This is not necessary, because the buffer is only used in InflaterInputStream::skip() which is probably not the most prominent method of InflaterInputStream.

      Instead, the skip buffer could be lazily allocated when InflaterInputStream::skip() will be called for the first time.

      Attachments

        Issue Links

          Activity

            People

              simonis Volker Simonis
              simonis Volker Simonis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: