Skip to main content

Module optimization

Module optimization 

Source
Expand description

Download optimization through compression and caching.

This module provides the Optimizer struct for configuring and applying optimizations to downloads:

  • Compression: Automatic compression/decompression using Gzip, LZ4, or Brotli
  • Caching: Store downloaded files locally to avoid redundant downloads
  • Speed limiting: Control bandwidth usage

§Example

use kget::Optimizer;

// Create with default settings
let optimizer = Optimizer::new();

// Check if compression is enabled
if optimizer.is_compression_enabled() {
    println!("Compression active");
}

Structs§

Optimizer
Download optimizer for compression, caching, and speed limiting.