summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/StringMap.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-03 22:15:38 +0000
committerChris Lattner <sabre@nondot.org>2007-04-03 22:15:38 +0000
commit64df4ba422e3eacde6de8014854f075ba38d6c7e (patch)
tree5625aaaf741497001f897c35ec92d9c6edacc32b /llvm/lib/Support/StringMap.cpp
parent85b0927c4badb0a5f15670d26ecbd694c64f5cd8 (diff)
downloadbcm5719-llvm-64df4ba422e3eacde6de8014854f075ba38d6c7e.tar.gz
bcm5719-llvm-64df4ba422e3eacde6de8014854f075ba38d6c7e.zip
greatly reduce hte default size of stringmap.
llvm-svn: 35632
Diffstat (limited to 'llvm/lib/Support/StringMap.cpp')
-rw-r--r--llvm/lib/Support/StringMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/StringMap.cpp b/llvm/lib/Support/StringMap.cpp
index 95ff2bbe94a..a84cd9dbc64 100644
--- a/llvm/lib/Support/StringMap.cpp
+++ b/llvm/lib/Support/StringMap.cpp
@@ -18,7 +18,7 @@ using namespace llvm;
StringMapImpl::StringMapImpl(unsigned InitSize, unsigned itemSize) {
assert((InitSize & (InitSize-1)) == 0 &&
"Init Size must be a power of 2 or zero!");
- NumBuckets = InitSize ? InitSize : 512;
+ NumBuckets = InitSize ? InitSize : 16;
ItemSize = itemSize;
NumItems = 0;
NumTombstones = 0;
OpenPOWER on IntegriCloud