Changeset 142260 in webkit


Ignore:
Timestamp:
Feb 8, 2013 4:45:44 AM (11 years ago)
Author:
akling@apple.com
Message:

JSC: Lower minimum PropertyTable size.
<http://webkit.org/b/109247>

Reviewed by Darin Adler.

Lower the minimum table size for PropertyTable from 16 to 8.
3.32 MB progression on Membuster3 (a ~13% reduction in memory used by PropertyTables.)

  • runtime/PropertyMapHashTable.h:

(PropertyTable):
(JSC::PropertyTable::sizeForCapacity):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r142203 r142260  
     12013-02-08  Andreas Kling  <akling@apple.com>
     2
     3        JSC: Lower minimum PropertyTable size.
     4        <http://webkit.org/b/109247>
     5
     6        Reviewed by Darin Adler.
     7
     8        Lower the minimum table size for PropertyTable from 16 to 8.
     9        3.32 MB progression on Membuster3 (a ~13% reduction in memory used by PropertyTables.)
     10
     11        * runtime/PropertyMapHashTable.h:
     12        (PropertyTable):
     13        (JSC::PropertyTable::sizeForCapacity):
     14
    1152013-02-07  Roger Fong  <roger_fong@apple.com>
    216
  • trunk/Source/JavaScriptCore/runtime/PropertyMapHashTable.h

    r140186 r142260  
    235235    OwnPtr< Vector<PropertyOffset> > m_deletedOffsets;
    236236
    237     static const unsigned MinimumTableSize = 16;
     237    static const unsigned MinimumTableSize = 8;
    238238    static const unsigned EmptyEntryIndex = 0;
    239239};
     
    588588inline unsigned PropertyTable::sizeForCapacity(unsigned capacity)
    589589{
    590     if (capacity < 8)
     590    if (capacity < MinimumTableSize / 2)
    591591        return MinimumTableSize;
    592592    return nextPowerOf2(capacity + 1) * 2;
Note: See TracChangeset for help on using the changeset viewer.