[
https://issues.apache.org/jira/browse/COMPRESS-435?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Bodewig resolved COMPRESS-435.
-------------------------------------
Resolution: Fixed
Many thanks, patch applied.
> Use Switch Instead of InstanceOf For Snappy/LZ4
> ------------------------------------------------
>
> Key: COMPRESS-435
> URL: https://issues.apache.org/jira/browse/COMPRESS-435
> Project: Commons Compress
> Issue Type: Improvement
> Components: Compressors
> Affects Versions: 1.15
> Reporter: BELUGA BEHR
> Priority: Trivial
> Fix For: 1.16
>
> Attachments: COMPRESS-435.1.patch
>
>
> Instead of checking for {{instanceof}} in determining block types emitted
> from Snappy/LZ4, use Enumerator + Switch statement.
> My micro-benchmarks indicate about a 1% performance improvement over the
> current implementation.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)