PyDocs

Nav

Data Compression and Archiving

CompressionParameter

  • CompressionParameter(*values)
Compression parameters.
Members of CompressionParameter

b

bounds
Return the (lower, upper) int bounds of a compression parameter.

c

chain_log
Size of the multi-probe search table, as a power of two.
checksum_flag
A four-byte checksum using XXHash64 of the uncompressed content is written at the end of each frame.
compression_level
A high-level means of setting other compression parameters that affect the speed and ratio of compressing data.
content_size_flag
Write the size of the data to be compressed into the Zstandard frame header when known prior to compressing.

d

dict_id_flag
When compressing with a ZstdDict, the dictionary’s ID is written into the frame header.

e

enable_long_distance_matching
Long distance matching can be used to improve compression for large inputs by finding large matches at greater distances.

h

hash_log
Size of the initial probe table, as a power of two.

j

job_size
Size of a compression job, in bytes.

l

ldm_bucket_size_log
Log size of each bucket in the long distance matcher hash table for collision resolution.
ldm_hash_log
Size of the table for long distance matching, as a power of two.
ldm_hash_rate_log
Frequency of inserting/looking up entries into the long distance matcher hash table.
ldm_min_match
Minimum match size for long distance matcher.

m

min_match
Minimum size of searched matches.

n

nb_workers
Select how many threads will be spawned to compress in parallel.

o

overlap_log
Sets how much data is reloaded from previous jobs (threads) for new jobs to be used by the look behind window during compression.

s

search_log
Number of search attempts, as a power of two.
strategy
The higher the value of selected strategy, the more complex the compression technique used by zstd, resulting in higher compression ratios but slower compression.

t

target_length
The impact of this field depends on the selected Strategy.

w

window_log
Maximum allowed back-reference distance the compressor can use when compressing data, expressed as power of two, 1 << window_log bytes.
0 Examples
No examples for compression.zstd/CompressionParameter.
See Also
No see-alsos for compression.zstd/CompressionParameter
0 Notes
No notes for CompressionParameter