Skip to content

wasm library for brotli compression and decompression

License

Notifications You must be signed in to change notification settings

packurl/wasm_br

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WASM libs for brotli compression and decompression.

This is a simple wrapper on top of the brotli rust crate.


Compilation:

wasm-pack build --target web


Dependencies:


Remarks:

  • Level 7 or 8 seem to be the best when compression times are important.
  • Level 9 sometimes gives worse ratios that 7 or 8 (this is the case when compressing brotli.wasm or brotli_enc.wasm for instance)
  • Level 10 can be slower than level 11 (again, that's the case on brotli.wasm or brotli_enc.wasm).
  • Level 11 always gives better ratios, and sometimes by a lot, but with much longer compression times than level 9.