pub struct LevelConfig {
pub hash_log: u8,
pub chain_log: u8,
pub search_depth: u32,
pub lazy_matching: bool,
pub lazy_min_gain: usize,
pub target_block_size: usize,
}Expand description
Compression level configuration.
Controls the trade-off between compression speed and ratio. Higher levels use larger hash/chain tables and deeper search, producing better compression at the cost of more CPU time.
Fields§
§hash_log: u8Hash log: hash table size = 1 << hash_log.
chain_log: u8Chain log: chain table size = 1 << chain_log. Set to 0 to disable chaining.
search_depth: u32Maximum number of positions checked when following a hash chain.
lazy_matching: boolWhether to use lazy matching (check position P+1 before committing to P).
lazy_min_gain: usizeMinimum length improvement required for a lazy match to replace the current.
target_block_size: usizeTarget block size in bytes for block splitting.
Implementations§
Trait Implementations§
Source§impl Clone for LevelConfig
impl Clone for LevelConfig
Source§fn clone(&self) -> LevelConfig
fn clone(&self) -> LevelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LevelConfig
impl RefUnwindSafe for LevelConfig
impl Send for LevelConfig
impl Sync for LevelConfig
impl Unpin for LevelConfig
impl UnsafeUnpin for LevelConfig
impl UnwindSafe for LevelConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more