From: Chris Lattner Date: Tue, 3 Apr 2007 22:15:38 +0000 (+0000) Subject: greatly reduce hte default size of stringmap. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ef4c916193e49e20c492f73147b3872b01c23862;p=oota-llvm.git greatly reduce hte default size of stringmap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35632 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/StringMap.cpp b/lib/Support/StringMap.cpp index 95ff2bbe94a..a84cd9dbc64 100644 --- a/lib/Support/StringMap.cpp +++ b/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;