mirror of
https://github.com/google/brotli.git
synced 2026-09-22 06:35:52 +00:00
41x slower compression speed for 1 pathological file #98
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 @phlknght on GitHub (Mar 17, 2016).
For one particular file, I am seeing 41x slower compression speed versus the average for my data set, but only on quality 10/11. This file is a 57MB XML file that has the same small section repeated over and over. It compresses down to 13KB, but takes 72 minutes to process. If I reduce the window to 16 bits, it completes in 45 minutes, and at quality 9 with the default window, it compresses in 1.7s. Decompression takes .125s.
For my uses, I will be editing the file to not be so problematic, but there is something pathological about this case that seems to deserve some attention.
Here is a repo containing the problem file, compressed with Brotli.
Here is the raw timing data:
I did some quick profiling on the first few seconds within Visual Studio 2015, and here are the results:

Drilling down:

And further down:

@eustas commented on GitHub (Jun 21, 2016):
Hello.
Sorry for the late response. Going to investigate soon.
@eustas commented on GitHub (Jun 21, 2016):
Seems that problem is already solved (at least in linux):
Going to test under windows soon.
@eustas commented on GitHub (Jun 21, 2016):
Fixed in windows as well.