forked from apache/arrow-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass decompressed size to parquet Codec::decompress (apache#2956)
Added optional argument uncompressed_size to Coded::decompress to do a better estimation of the required uncompress size. * snappy: Probably no much improvement as `decompress_len` is already accurate. * gzip: No improvement. Ignores the size hint. * brotli: Probably no much improvement. The buffer size will be equal to the uncompressed_size size. * lz4: No improvement. As the buffer is located at the stack there are no extra allocations. Then it probably is better to keep it working as it is. * zstd: No improvement. Ignores the size hint. * lz4_raw: Improvement. The estimation method over-estimates, so knowin the uncompressed size reduces allocations.
- Loading branch information
Adrián Gallego Castellanos
committed
Oct 27, 2022
1 parent
4e1247e
commit 0ffec74
Showing
2 changed files
with
54 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters