aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/Compressor.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-30 07:13:34 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-30 07:13:34 +0000
commita7a5cc889c9c5bc4f70ef40d87fce365c042a3a2 (patch)
tree7dd39e963e7628b6dae6b27f8ad2a29844b5c979 /lib/Support/Compressor.cpp
parent5a85d9c664f0687b4fc89f3b38594b9555a9f193 (diff)
Up the compression threshold to 64K so we avoid it for all but the largest
bytecode files. This should help linking substantially. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Compressor.cpp')
-rw-r--r--lib/Support/Compressor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Compressor.cpp b/lib/Support/Compressor.cpp
index cf4c9cd54f..ac6a78a10f 100644
--- a/lib/Support/Compressor.cpp
+++ b/lib/Support/Compressor.cpp
@@ -249,7 +249,7 @@ uint64_t Compressor::compress(const char* in, unsigned size,
// For small files, we just don't bother compressing. bzip2 isn't very good
// with tiny files and can actually make the file larger, so we just avoid
// it altogether.
- if (size > 256) {
+ if (size > 64*1024) {
// Set up the bz_stream
bz_stream bzdata;
bzdata.bzalloc = 0;