mirror of
https://github.com/google/brotli.git
synced 2026-09-23 07:05:31 +00:00
Big performance difference: BUILD_TYPE "Debug" vs "Release" #193
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 @jschleus on GitHub (Sep 21, 2017).
I just compiled brotli-1.0.0 on a Linux system (openSUSE Leap 42.3) according the build instructions within the README.md file.
As a first test I compressed an arbitrary log file and I got an output file slightly smaller than the xz-variant (not a benchmark, no special optimizations). Just for curiosity I downloaded also the file brotli-linux-v1.0.0.zip and repeated the compression with the precompiled brotli binary and surprisingly the compression was now done nearly three times (!) faster (with the same resulting output). After some testing I found out that setting BUILD_TYPE="Release" instead of the default BUILD_TYPE="Debug" in the configure-cmake script leads also to the shorter compression time. This setting may be also achieved by the option "--disable-debug".
So I recommend to add an according information into the build instructions to let the brotli performance appear in the right light. But I am a layman in this area and maybe I have overseen something.
@eustas commented on GitHub (Sep 21, 2017):
Surely. I'll update README.md to reflect that default build with configure-cmake is "Debug".
It is mentioned inside configure-cmake, that this is done to reflect default automake behaviour...