mapleFU commented on issue #37169: URL: https://github.com/apache/arrow/issues/37169#issuecomment-1678795953
> For parallel execution, use one separate ZSTD_CStream per thread. > > note : since v1.4.0, ZSTD_CStream and ZSTD_CCtx are the same thing. > > Parameters are sticky : when starting a new compression on the same context, > it will re-use the same sticky parameters as previous compression session. > When in doubt, it's recommended to fully initialize the context before usage. > Use ZSTD_CCtx_reset() to reset the context and ZSTD_CCtx_setParameter(), > ZSTD_CCtx_setPledgedSrcSize(), or ZSTD_CCtx_loadDictionary() and friends to > set more specific parameters, the pledged source size, or load a dictionary. Seems that we can create a decompressor, which could make full use of `ctx`, and saving some memory. However, it shares different api with `Codec`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
