commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bodewig (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COMPRESS-435) Use Switch Instead of InstanceOf For Snappy/LZ4
Date Wed, 27 Dec 2017 10:48:00 GMT

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

Stefan Bodewig updated COMPRESS-435:
------------------------------------
    Fix Version/s: 1.16

> 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)

Mime
View raw message