Comments (6)
As Brotli is deliberately designed to be asymmetric (favouring decompression speed over compression speed) it would be interesting to know where it ranks on decompression time on that image.
from brotli.
Decompression speed is about right. Look at the benchmark I linked to. The results table can be sorted by decompression speed; just click on the "Decompression Speed" header of the results table.
The problem is that this is a huge outlier for brotli's compression speed. It's so slow that it basically amounts to a DoS vulnerability. It takes an hour to compress an 8.1 MiB file (on a Xeon E3-1225 v3), which is 5.62 KiB/s. The next slowest file (ooffice, which is a 5.87 MiB DLL from OpenOffice.org 1.01) is 59.9 KiB/s.
I think a lot of the compression speeds are pretty bad when you look at Brotli's competition (LZHAM is probably the closest competitor—it offers pretty similar ratios and decompression speed but much more stable, and generally faster compression). But 5.62 KiB/s is just unacceptable.
from brotli.
It's probably not unrelated that brotli also allocates a lot of memory for this file. One of my ARM boards (with 1 GiB memory) mercifully terminates with a std::bad_alloc exception (hopefully the others will, as well). An old laptop with 1 GiB memory and plenty of swap space, OTOH, is still happily thrashing after 50 hours. Peak memory usage for that process right now is 1790520 KiB, current is 1266228. For an 8.1 MiB file.
from brotli.
I believe this has been fixed.
I've measured compression of x-ray on odroid-c1 with broltli (level 11) - it took 5 min 41 sec, so the speed is about 24 KiB/s. On rpi-2 it would take 10-15 minutes to compress.
With lower level it works much faster. E.g. with level 1 it takes less than 2 sec; on level 9 it works 1 min 24 sec.
Probably it is time to reevaluate brotli compression...
from brotli.
FWIW, time -f "%M" shows that brotli uses ~310MB of memory when compress x-ray (on level 11)
from brotli.
I just updated the benchmark, and this issue does seem to be fixed.
Brotli has made a lot of progress in the last few months.
from brotli.
Related Issues (20)
- v1.1.0rc does not build on macOS 10.12.6 HOT 8
- Strange compression ratio on large CSV file... HOT 1
- Brotli v1.1.0 tests fail with pypy3 HOT 10
- Brotli 1.1.0 breaks Python 2 compatibility HOT 3
- Create a static source tarball for releases
- CMake build broken, tries to install man files in /man not in CMAKE_INSTALL_PREFIX
- bazel error no such package '@org_brotli// HOT 4
- Brotli 1.1.0 NginX HOT 3
- Brotli 1.1.0 changed return values? HOT 5
- [Feature Request] adding a option to control whether install the executable HOT 4
- makefile broken HOT 7
- undefined symbol BrotliEncoderDestroyPreparedDictionary HOT 5
- Windows ARM64EC Target Fails - _tzcnt_u64(EC Symbol) HOT 4
- CMake compile error on Debian bookworm HOT 1
- 1.0.9 used to build static libraries - where have they gone?
- Kotlin Multiplatform HOT 11
- AMD gpu brotli sdk 1.0 > inclusion? HOT 1
- Reusing/resetting a brotli.Writer instance HOT 2
- Output file with path containing non-Latin Unicode characters on Windows HOT 1
- Is brotli not supported on mac 14? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brotli.