mirror of
https://github.com/google/brotli.git
synced 2026-09-23 23:24:59 +00:00
0.6.0 compression is slow (or never finishes?) for data over ~1.57MB #189
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 @jotto on GitHub (Aug 11, 2017).
It might have to do with randomness in the file - I can easily compress a large file of zeros, but not JPGs over ~2MB or /dev/random over ~1572864 bytes.
@eustas commented on GitHub (Aug 11, 2017):
Going to investigate it on Monday.
@eustas commented on GitHub (Aug 23, 2017):
Haven't done investivation, just inspected the code.
This loop looks suspicious: https://github.com/MayhemYDG/iltorb/blob/master/src/enc/stream_encode_worker.cc#L25
See - no output space is given; if it happens, that internal brotli output buffer is full - it can't continue processing... so it becomes infinite loop...
Outer wrapper also doesn't care, if chunk is too big to make "StreamEncodeWorker" choke...