#high-performance #rfc

flate3

High-performance RFC 1951 compression and de-compression

22 releases

Uses new Rust 2021

0.1.21 Oct 29, 2021
0.1.20 Aug 29, 2020
0.1.3 Jul 31, 2020
Download history 1/week @ 2022-02-11 23/week @ 2022-02-18 1/week @ 2022-03-04 44/week @ 2022-03-11 89/week @ 2022-03-18 1/week @ 2022-03-25 1/week @ 2022-04-08 1/week @ 2022-04-15 133/week @ 2022-04-29 90/week @ 2022-05-06 374/week @ 2022-05-13

597 downloads per month

MIT/Apache

48KB
1K SLoC


lib.rs:

RFC 1951 compression and de-compression.

flate3 is intended to be a high-performance alternative to the flate2 crate.

It should compress slightly better than flate2. It uses multiple threads to compress faster.

Example:

let mut comp = flate3::Compressor::new();
let data = [ 1,2,3,4,1,2,3 ];
let cb : Vec<u8> = comp.deflate( &data );
println!( "compressed size={}", cb.len() );
let uc : Vec<u8> = flate3::inflate( &cb );
println!( "de-compressed size={}", uc.len() );
assert!( uc == &data );

Dependencies

~155KB