Github user leventov commented on the issue:

    https://github.com/apache/curator/pull/282
  
    However, the specialized code will still be more efficient:
    ```java
        // Even when Curator's minimum supported Java version becomes
        // no less than Java 12, where finalize() methods are removed
        // in Deflater and Inflater classes and instead they are 
phantom-referenced
        // via Cleaner, it still makes sense to avoid GZIPInputStream
        // and GZIPOutputStream because phantom references are also not
        // entirely free for GC algorithms, and also to allocate less garbage
        // and make less unnecessary data copies.
    ```


---

Reply via email to