mapleFU opened a new issue, #37169:
URL: https://github.com/apache/arrow/issues/37169
### Describe the enhancement requested
In compression, zstd supports a Compression/Decompression context[1]. It
will make it better for system memory usage. RocksDB can utilize the Context[2]
and Context Cache[3].
So here I propose an support for context.
```c++
class ARROW_EXPORT CodecContext {};
/// \brief Compression codec options
class ARROW_EXPORT CodecOptions {
public:
int compression_level;
+ std::unique_ptr<CodecContext> context;
};
```
1. https://raw.githack.com/facebook/zstd/release/doc/zstd_manual.html
2.
https://github.com/facebook/rocksdb/blob/a09c141dde51372d14bcfd3affdd242f1248c761/util/compression.h#L362
3.
https://github.com/facebook/rocksdb/blob/a09c141dde51372d14bcfd3affdd242f1248c761/util/compression_context_cache.h#L27
### Component(s)
C++
--
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]