llvm.org GIT mirror llvm / ef4c916
greatly reduce hte default size of stringmap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35632 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1717 StringMapImpl::StringMapImpl(unsigned InitSize, unsigned itemSize) {
1818 assert((InitSize & (InitSize-1)) == 0 &&
1919 "Init Size must be a power of 2 or zero!");
20 NumBuckets = InitSize ? InitSize : 512;
20 NumBuckets = InitSize ? InitSize : 16;
2121 ItemSize = itemSize;
2222 NumItems = 0;
2323 NumTombstones = 0;