mirror of
https://github.com/google/brotli.git
synced 2026-09-22 22:56:08 +00:00
Poor compression rate with languages not in the dictionary #199
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @spixi on GitHub (Oct 10, 2017).
The dictionary is only optimized for English, Spanish, Chinese, Hindi, Russian, Arabic, HTML, JavaScript and CSS. For texts in other languages, like German, brotli may have a worse compression rate than bzip2.
I used the default settings for
gcab-0.7 (with option -z)
brotli-0.6.0
bzip2-1.0.6
gzip-1.8
zip-3.0 (Info-ZIP)
xz-utils-5.2.3
p7zip-16.02
lzip-1.16
This is my result for du -ab
83437 ./goethe.cab
190778 ./goethe.txt
69034 ./goethe.br
61132 ./goethe.bzip2
77671 ./goethe.gz
77812 ./goethe.zip
69296 ./goethe.xz
69364 ./goethe.txt.7z
69303 ./goethe.lz
This is my test file: goethe.txt
I used German as an example, because that language is spoken by about 100 Million native speakers and it is the most most widely spoken mother tongue in the European Union, even before English and French. (See here).
@eustas commented on GitHub (Oct 11, 2017):
This is a known problem. We work on this topic. Next brotli version will support more (all) languages.