projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a088e4
)
greatly reduce hte default size of stringmap.
author
Chris Lattner
<sabre@nondot.org>
Tue, 3 Apr 2007 22:15:38 +0000
(22:15 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/Support/StringMap.cpp
b/lib/Support/StringMap.cpp
index 95ff2bbe94a2ca0071a0c8d2af3fe4da202edaa5..a84cd9dbc64c9e57ed46f133a2d99d6c93841b72 100644
(file)
--- 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;