summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit95729469ccbe5a9832c185e692929de9143f25e5 (patch)
tree8d80d3128724c6ba4ff204b3ca0d73c42776e523 /llvm/lib/Support/Compressor.cpp
parent868ae13dc0f08dbd6da98957f4c064274c00519f (diff)
downloadbcm5719-llvm-95729469ccbe5a9832c185e692929de9143f25e5.tar.gz
bcm5719-llvm-95729469ccbe5a9832c185e692929de9143f25e5.zip
Up the compression threshold to 64K so we avoid it for all but the largest
bytecode files. This should help linking substantially. llvm-svn: 18378
Diffstat (limited to 'llvm/lib/Support/Compressor.cpp')
-rw-r--r--llvm/lib/Support/Compressor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Compressor.cpp b/llvm/lib/Support/Compressor.cpp
index cf4c9cd54ff..ac6a78a10f0 100644
--- a/llvm/lib/Support/Compressor.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud