[
https://issues.apache.org/jira/browse/NIFI-6964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17001750#comment-17001750
]
John Pierce commented on NIFI-6964:
-----------------------------------
I'm up for doing a github pull, but honestly, I'm a little rusty on all this
modern software development practice (been 10+ years since I've done hard-core
dev and like everything has changed). Are there any guides out there to give me
step-by-step on what you describe?
Regarding changing the default compression-level form 6 to 1 – that was
unintentional. I guess the default value for this property for the
CompressContent processor defaults to 1 – hence the change in default behavior.
Yeah - I think just tell people about that change is probably the best way to
go versus trying to preserve the default of 6 if you happen to choose XZ-LZMA2
compression format.
Again - if there's a simple dummy guide for how I can better provide the code
to you, please advise. I could use this as a forcing function to spruce up my
skills a bit.
> Use compression level for xz-lzma2 format of the CompressContent processor
> --------------------------------------------------------------------------
>
> Key: NIFI-6964
> URL: https://issues.apache.org/jira/browse/NIFI-6964
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Affects Versions: 1.10.0
> Reporter: John Pierce
> Priority: Minor
> Labels: xz-lzma2
> Attachments: CompressContent-enable-xz-compression-levels.patch
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> The CompressContent processor does not use the Compression Level property of
> the processor except for when using the GZIP compression format. On the
> contrary, the xz-lzma2 compression format defaults to using XZ compression
> level 6 for that specific format (I read the CompressContent.java source code
> to verify this) – disregarding whatever compression level you set on the
> processor itself.
> I have a use case where I must use the xz-lzma2 format (don't ask why) and I
> have to send (using the XZ format) already highly-compressed content that is
> +*NOT*+ XZ format to begin with. I have in excess of 500 GB of this sort of
> already highly compressed content to further compress into the XZ format on a
> daily basis.
> The attached patch will enhance the CompressContent.java source code enabling
> the compression level property to be used in both the GZIP and the XZ-LZMA2
> formats.
> Please consider adding this patch to the baseline for this processor. I've
> tested it and the results are fantastic because I can crank down the
> compression level to 0 for XZ-LZMA2 now and use a lot less CPU. I'm generally
> seeing a 66% improvement in elapsed time to process highly compressed content
> using XZ format with compression level of 0 versus the hard-coded level 6 of
> the baseline code.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)