Dropbox releases DivANS: a new file compressor written in Rust, compiled to WASM (demo included)


#1

DivANS is a modular file compressor written in Rust, using the new SIMD intrinsics available in 1.26 as well as multithreading and custom allocators while still remaining safe.

Check out the compression demo when compiled to wasm. The demo includes a rust-only compilation of google’s Brotli compression algorithm to compare results.

The project would love contributions and feedback as well as new optimizers or other mechanisms to generate the compression intermediate representation.


#2

Is it actually able to use SIMD when compiled to WASM? I didn’t know something like that was feasible.


#3

I didn’t actually benchmark it, but it definitely felt faster when I compiled with the simd flags… I should add some timing numbers.