Function compare_compression_algorithms

Source
pub fn compare_compression_algorithms<A, S, D>(
    array: &ArrayBase<S, D>,
    algorithms: &[CompressionAlgorithm],
    level: Option<u32>,
) -> Result<Vec<(CompressionAlgorithm, f64, usize)>>
where A: Serialize + Clone, S: Data<Elem = A>, D: Dimension + Serialize,
Expand description

Returns compression statistics for a given array and set of algorithms

This is useful for determining which compression algorithm is most effective for a particular dataset.

§Arguments

  • array - The array to test
  • algorithms - List of compression algorithms to test
  • level - Compression level to use for all algorithms

§Returns

A vector of (algorithm, ratio, compressed_size) tuples