You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2024/08/12 14:02:00 UTC
[jira] [Commented] (AVRO-4032) It'd be great to be able to set the zstd compression level to something other than the default
[ https://issues.apache.org/jira/browse/AVRO-4032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872939#comment-17872939 ]
Martin Tzvetanov Grigorov commented on AVRO-4032:
-------------------------------------------------
Zstandard(ZstdLevel) looks the best to me!
Please experiment and send a PR! Thank you!
> 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
> Priority: Minor
>
> 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)