Function compress_array_chunked

Source
pub fn compress_array_chunked<P, A, S>(
    path: P,
    array: &ArrayBase<S, IxDyn>,
    algorithm: CompressionAlgorithm,
    level: Option<u32>,
    chunk_size: usize,
) -> Result<()>
where P: AsRef<Path>, A: Serialize + Clone, S: Data<Elem = A>,
Expand description

Compress an array in chunks for memory-efficient processing of large arrays

This function processes the array in chunks to avoid loading the entire array into memory at once, which is useful for very large arrays.

§Arguments

  • path - Path to save the compressed array
  • array - The array to compress
  • algorithm - The compression algorithm to use
  • level - The compression level (0-9)
  • chunk_size - Size of chunks to process at once (number of elements)

§Returns

Result indicating success or failure