greatly reduce hte default size of stringmap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2007-04-03 22:15:38 +00:00
parent 2a088e4f09
commit ef4c916193

View File

@@ -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;