Benjamin Mahler created CURATOR-618:
---------------------------------------

             Summary: Allow compression level to be configurable in the 
GzipCompressionProvider.
                 Key: CURATOR-618
                 URL: https://issues.apache.org/jira/browse/CURATOR-618
             Project: Apache Curator
          Issue Type: Improvement
            Reporter: Benjamin Mahler
            Assignee: Jordan Zimmerman


Currently the compression level is burned in as the default (-1):

[https://github.com/apache/curator/blob/ed3cc848f51b309db69f4e453d0509a48e9212d6/curator-framework/src/main/java/org/apache/curator/framework/imps/GzipCompressionProvider.java#L96]

It would help in some cases to allow this to be configurable (e.g. when 
compression ratio matters most or when cpu consumption / latency matters most). 
Ideally this needs to be configurable at each compress call (which then needs 
to bubble up into the relevant higher level functions), rather than at 
construction time, since one gzip compression provider instance is serving all 
compression FWICT.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to