Changeset 142260 in webkit
- Timestamp:
- Feb 8, 2013 4:45:44 AM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r142203 r142260 1 2013-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 1 15 2013-02-07 Roger Fong <roger_fong@apple.com> 2 16 -
trunk/Source/JavaScriptCore/runtime/PropertyMapHashTable.h
r140186 r142260 235 235 OwnPtr< Vector<PropertyOffset> > m_deletedOffsets; 236 236 237 static const unsigned MinimumTableSize = 16;237 static const unsigned MinimumTableSize = 8; 238 238 static const unsigned EmptyEntryIndex = 0; 239 239 }; … … 588 588 inline unsigned PropertyTable::sizeForCapacity(unsigned capacity) 589 589 { 590 if (capacity < 8)590 if (capacity < MinimumTableSize / 2) 591 591 return MinimumTableSize; 592 592 return nextPowerOf2(capacity + 1) * 2;
Note: See TracChangeset
for help on using the changeset viewer.