[ 
https://issues.apache.org/jira/browse/ORC-639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17175870#comment-17175870
 ] 

Ion Gaztañaga commented on ORC-639:
-----------------------------------

Yes, I added a pull request for that:

[https://github.com/apache/orc/pull/537]

> Improve zstd compression performance
> ------------------------------------
>
>                 Key: ORC-639
>                 URL: https://issues.apache.org/jira/browse/ORC-639
>             Project: ORC
>          Issue Type: Improvement
>          Components: C++, compression
>    Affects Versions: 1.6.3
>            Reporter: Ion Gaztañaga
>            Assignee: Ion Gaztañaga
>            Priority: Minor
>              Labels: performance
>             Fix For: 1.7.0
>
>
> In Compression.cc, classes ZSTDCompressionStream and ZSTDDecompressionStream 
> employ Zstd's "Simple API", which initializes the compression/decompression 
> context each time. This context initialization includes time to initialize 
> all compression/decompression tables.
>  
> Using the "Explicit context" API improves the performance significantly as 
> compression/decompression tables are constructed once and reused each time 
> "decompress" or "doBlockCompression" is called.
> We've noticed more than 15% time improvement in some applications with this 
> change, so it seems that any ORC user using Zstd can benefit from this change.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to