Skip to main content

Crate rustyhdf5_filters

Crate rustyhdf5_filters 

Source
Expand description

Filter and compression pipeline for HDF5.

Provides deflate (zlib) decompression/compression with multiple backend options:

  • Default: miniz_oxide (pure Rust, no C dependencies)
  • fast-deflate feature: zlib-ng via flate2 (~2-3x faster, matches C HDF5)
  • apple-compression feature: Apple Compression Framework on macOS (hardware-accelerated on Apple Silicon)

Backend priority: apple-compression > zlib-ng > miniz_oxide.

Modules§

fast_deflate
Fast deflate backends: Apple Compression Framework and zlib-ng.

Functions§

deflate_backend
Returns the name of the currently active deflate backend.
deflate_compress
Compress data with zlib.
deflate_compress_miniz
Compress data using the pure-Rust miniz_oxide backend. Always available regardless of feature flags, for comparison/testing.
deflate_decompress
Decompress zlib-compressed data.
deflate_decompress_miniz
Decompress zlib data using the pure-Rust miniz_oxide backend. Always available regardless of feature flags, for comparison/testing.