⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 130643 in webkit


Ignore:
Timestamp:
Oct 8, 2012, 8:11:21 AM (14 years ago)
Author:
kling@webkit.org
Message:

Lower minimum table size of WTF::HashTable to reduce memory usage.
<​http://webkit.org/b/98406>
<rdar://problem/12432140>

Reviewed by Anders Carlsson.

Lower the default minimumTableSize for WTF hash tables from 64 to 8 entries.
This reduces WebProcess memory consumption by ~16MB on Membuster3 (a 6% progression!)

No significant movement on PLT or JSC benchmarks on my machine. If there's a perf regression somewhere
from this, we can tweak individual tables to have a larger minimumTableSize.

  • wtf/HashTraits.h:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r130639 r130643  
     12012-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
    1172012-10-08  Andreas Kling  <kling@webkit.org>
    218
  • trunk/Source/WTF/wtf/HashTraits.h

    r130612 r130643  
    5151        static const bool needsDestruction = true;
    5252
    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;
    5456    };
    5557
Note: See TracChangeset for help on using the changeset viewer.