Ignore:
Timestamp:
Mar 3, 2003, 5:13:26 PM (22 years ago)
Author:
mjs
Message:

JavaScriptCore:

Reviewed by Trey.

  • fixed 3158833 - ebay prefs page is so slow, it seems like a hang.

92% speed improvement on ebay prefs page.
1% speed improvement on js-ibench and js-performance plt suites.

There were a couple of problems with the identifier hash table that
I fixed:

  • kjs/identifier.cpp: (void Identifier::remove): Adjust the shrink threshold to avoid constantly growing and shrinking.
  • kjs/ustring.cpp: (UString::Rep::computeHash): Use a better hash function that avoids collisions for obvious data sets.

WebFoundation:

Reviewed by Trey.

Updated string hash function to match the new, improved one in
JavaScriptCore.

  • Database.subproj/WebLRUFileList.m: (cStringHash):

WebCore:

Reviewed by Trey.

Updated string hash function to match the new, improved one in
JavaScriptCore.

  • kwq/KWQCharsets.mm: (encodingNameHash):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/identifier.cpp

    r3373 r3736  
    255255    --_keyCount;
    256256   
    257     if (_keyCount * 3 < _tableSize && _tableSize > _minTableSize) {
     257    if (_keyCount * 6 < _tableSize && _tableSize > _minTableSize) {
    258258        shrink();
    259259        return;
Note: See TracChangeset for help on using the changeset viewer.