greatly reduce hte default size of stringmap.
authorChris Lattner <sabre@nondot.org>
Tue, 3 Apr 2007 22:15:38 +0000 (22:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 3 Apr 2007 22:15:38 +0000 (22:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35632 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/StringMap.cpp

index 95ff2bbe94a2ca0071a0c8d2af3fe4da202edaa5..a84cd9dbc64c9e57ed46f133a2d99d6c93841b72 100644 (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;