Lazily allocate skip buffer in InflaterInputStream

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • 19
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: