Changeset 130643 in webkit
- Timestamp:
- Oct 8, 2012, 8:11:21 AM (14 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
wtf/HashTraits.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r130639 r130643 1 2012-10-08 Andreas Kling <kling@webkit.org> 2 3 Lower minimum table size of WTF::HashTable to reduce memory usage. 4 <http://webkit.org/b/98406> 5 <rdar://problem/12432140> 6 7 Reviewed by Anders Carlsson. 8 9 Lower the default minimumTableSize for WTF hash tables from 64 to 8 entries. 10 This reduces WebProcess memory consumption by ~16MB on Membuster3 (a 6% progression!) 11 12 No significant movement on PLT or JSC benchmarks on my machine. If there's a perf regression somewhere 13 from this, we can tweak individual tables to have a larger minimumTableSize. 14 15 * wtf/HashTraits.h: 16 1 17 2012-10-08 Andreas Kling <kling@webkit.org> 2 18 -
trunk/Source/WTF/wtf/HashTraits.h
r130612 r130643 51 51 static const bool needsDestruction = true; 52 52 53 static const int minimumTableSize = 64; 53 // The starting table size. Can be overridden when we know beforehand that 54 // a hash table will have at least N entries. 55 static const int minimumTableSize = 8; 54 56 }; 55 57
Note:
See TracChangeset
for help on using the changeset viewer.