#![allow(unused)]
fn main() {
use trueno_zram_core::{CompressorBuilder, Algorithm};
// LZ4: Fastest compression, good for most workloads
let lz4 = CompressorBuilder::new()
.algorithm(Algorithm::Lz4)
.build()?;
// ZSTD Level 1: Better ratio, still fast
let zstd_fast = CompressorBuilder::new()
.algorithm(Algorithm::Zstd { level: 1 })
.build()?;
// ZSTD Level 3: Best ratio for compressible data
let zstd_best = CompressorBuilder::new()
.algorithm(Algorithm::Zstd { level: 3 })
.build()?;
// Adaptive: Automatically selects based on entropy
let adaptive = CompressorBuilder::new()
.algorithm(Algorithm::Adaptive)
.build()?;
}