zipora 3.1.5

High-performance Rust implementation providing advanced data structures and compression algorithms with memory safety guarantees. Features LRU page cache, sophisticated caching layer, fiber-based concurrency, real-time compression, secure memory pools, SIMD optimizations, and complete C FFI for migration from C++.
use zipora::compression::dict_zip::blob_store::*;
use zipora::blob_store::traits::BlobStore;
use std::time::Instant;

#[test]
fn test_clone_performance() {
    let mut config = DictZipConfig::default();
    config.min_compression_size = 10;
    let mut builder = DictZipBlobStoreBuilder::with_config(config).unwrap();
    
    // Train with 10MB of data to make the DFA huge
    let big_data = vec![42u8; 10_000_000];
    builder.add_training_sample(&big_data).unwrap();
    let mut store = builder.finish().unwrap();

    let data = vec![b"hello world, this is a longer string".to_vec(); 1000];
    let start = Instant::now();
    for d in data {
        store.put(&d).unwrap();
    }
    println!("Elapsed for 1000 puts: {:?}", start.elapsed());
}