apache / orc

Apache ORC - the smallest, fastest columnar storage for Hadoop workloads
https://orc.apache.org/
Apache License 2.0
689 stars 483 forks source link

ORC-1595: Add a short-cut to skip tiny inputs for `ZstdCodec.compress` #1762

Closed dongjoon-hyun closed 9 months ago

dongjoon-hyun commented 9 months ago

What changes were proposed in this pull request?

For ZstdCodec.compress, this PR aims to add a short-cut to skip tiny inputs which is smaller than the minimum ZStandard format.

Why are the changes needed?

To reduce the number of JNI call.

How was this patch tested?

Pass the CIs.

Was this patch authored or co-authored using generative AI tooling?

No.