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

Lazily allocate skip buffer in InflaterInputStream

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: