[llvm-commits] CVS: llvm/lib/Support/StringMap.cpp

Chris Lattner sabre at nondot.org
Tue Apr 3 15:15:55 PDT 2007



Changes in directory llvm/lib/Support:

StringMap.cpp updated: 1.9 -> 1.10
---
Log message:

greatly reduce hte default size of stringmap.


---
Diffs of the changes:  (+1 -1)

 StringMap.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Support/StringMap.cpp
diff -u llvm/lib/Support/StringMap.cpp:1.9 llvm/lib/Support/StringMap.cpp:1.10
--- llvm/lib/Support/StringMap.cpp:1.9	Sun Feb 11 14:58:00 2007
+++ llvm/lib/Support/StringMap.cpp	Tue Apr  3 17:15:38 2007
@@ -18,7 +18,7 @@
 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;






More information about the llvm-commits mailing list