[
https://issues.apache.org/jira/browse/COMPRESS-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17282144#comment-17282144
]
Peter Lee commented on COMPRESS-564:
------------------------------------
> I haven't seen other examples of runtime configuration in commons-compress
>(although I haven't looked too closely yet)
We do not use runtime configuration like spark and Parquet did.
In this case, I think we can make BufferPool a parameter of constructor of
ZstdCompressorInputStream.
> Support ZSTD JNI BufferPool
> ---------------------------
>
> Key: COMPRESS-564
> URL: https://issues.apache.org/jira/browse/COMPRESS-564
> Project: Commons Compress
> Issue Type: New Feature
> Reporter: Michael Heuer
> Priority: Major
>
> commons-compress should allow configuration of zstd-jni's use of
> RecyclingBufferPool vs NoPool. zstd-jni defaults to not pool buffers by
> default
> [https://github.com/luben/zstd-jni/commit/f7c8279bc162c8c8b1964948d0f3b309ad715311]
>
> Please see pull requests for similar issues in Apache Spark
> [https://github.com/apache/spark/pull/31453]
> and Apache Parquet projects
> [https://github.com/apache/parquet-mr/pull/865]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)