[ 
https://issues.apache.org/jira/browse/DAFFODIL-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Lawrence resolved DAFFODIL-3082.
--------------------------------------
    Fix Version/s: 4.2.0
       Resolution: Fixed

Fixed in commit f66cafefc8471a93425ad61df999a40b78e3ca43

> Make GZIP layer compression level configurable
> ----------------------------------------------
>
>                 Key: DAFFODIL-3082
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-3082
>             Project: Daffodil
>          Issue Type: New Feature
>          Components: Back End
>            Reporter: Guichard Desrosiers
>            Assignee: Guichard Desrosiers
>            Priority: Major
>             Fix For: 4.2.0
>
>
> Currently, the gzip layer always uses java.util.zip.GZIPOutputStream at the
> JDK's default compression level (which zlib resolves to level 6) when
> unparsing. There is no way for a schema or user to choose a different level.
> Make the gzip compression level configurable via a new DFDL layer parameter
> variable, `gz:compressionLevel`. Valid values:
>   0       no compression
>   1-9    increasing compression, 1 = fastest and 9 = best compression
>   -1      sentinel meaning "use the implementation default" (level 6)
> The variable should default to -1 and be declared external="true" so users
> can set it without having to modify the schema. Additionally, it can be set 
> in schema via `dfdl:newVariableInstance` and `dfdl:setVariable`.



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

Reply via email to