2 releases

0.1.1+SZ3-3.1.8.1 May 28, 2024
0.1.0+SZ3-3.1.8 May 22, 2024

#192 in Compression

Download history 1/week @ 2024-07-23 5/week @ 2024-07-30 2/week @ 2024-08-06 296/week @ 2024-08-13 376/week @ 2024-08-20 103/week @ 2024-08-27 146/week @ 2024-09-03 268/week @ 2024-09-10 45/week @ 2024-09-17 88/week @ 2024-09-24 206/week @ 2024-10-01 131/week @ 2024-10-08 161/week @ 2024-10-15 144/week @ 2024-10-22 34/week @ 2024-10-29 19/week @ 2024-11-05

376 downloads per month
Used in numcodecs-sz3

MIT/Apache and GPL-3.0-only

4.5MB
40K SLoC

C 35K SLoC // 0.2% comments C++ 3K SLoC // 0.1% comments Rust 1K SLoC // 0.0% comments Visual Studio Project 180 SLoC Python 79 SLoC // 0.3% comments Objective-C 69 SLoC Visual Studio Solution 24 SLoC Batch 19 SLoC

sz3-rs

High level bindings to the SZ3 lossy floating point compressor.

Usage

let data = vec![0; 64 * 64 * 64];
let data = DimensionedData::build(&data)
    .dim(64)?
    .dim(64)?
    .remainder_dim()?;
let config = Config::new(ErrorBound::Absolute(0.02));
let compressed = compress_with_config(&data, &config);
let decompressed = decompress::<f32, _>(&*compressed);

Dependencies

~2.7–5.5MB
~103K SLoC