Brotli compression

Share your advanced PureBasic knowledge/code with the community.
Thorium
Addict
Addict
Posts: 1305
Joined: Sat Aug 15, 2009 6:59 pm

Brotli compression

Post by Thorium »

Brotli is a compression algorithm/library which is developed by google and mainly used to compress web traffic.

In my tests it turns out Brotli is a great compressor overall. If you go all the way up on compression level to the max, which is 11, it compresses very slowly but achieves better compression ratios than LZMA. It is especially good for text and code because it comes with a predefined dictionary of common words, but can be used for generic data as well.

https://github.com/google/brotli

I compiled a static lib for Windows and made a PB include to use it in PureBasic.
Download
User avatar
skywalk
Addict
Addict
Posts: 4218
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Brotli compression

Post by skywalk »

Thanks!
Have you compared with zstd?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Post Reply