Marco Lugo created AVRO-4032:
--------------------------------

             Summary: It'd be great to be able to set the zstd compression 
level to something other than the default
                 Key: AVRO-4032
                 URL: https://issues.apache.org/jira/browse/AVRO-4032
             Project: Apache Avro
          Issue Type: Wish
          Components: rust
            Reporter: Marco Lugo


Zstd level is always the default (i.e. 3). This is great for most cases but 
it'd be very convenient to be able to set a different level.

 

I was thinking that maybe the enum 
[here|https://docs.rs/apache-avro/latest/apache_avro/enum.Codec.html] could 
have another variant, something like `Zstandard(u8)` or even 
`Zstandard(ZstdLevel)` where ZstdLevel is an enum. Then if `Zstandard` is used 
it uses the default and if this newly proposed one is is used it takes into 
consideration the provided level. I lack context so there may be a good reason 
not to accept a different level or maybe a different way to do it.

 

If there's a preferred way of doing this, I am willing to open a PR with the 
changes.

 

Thank you,

Marco



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to