Ignore:
Timestamp:
May 19, 2009, 1:01:22 AM (16 years ago)
Author:
[email protected]
Message:

2009-05-19 Maciej Stachowiak <[email protected]>

Reviewed by Gavin Barraclough.


  • speed up string comparison, especially for short strings


~1% on SunSpider

  • JavaScriptCore.exp:
  • runtime/UString.cpp:
  • runtime/UString.h: (JSC::operator==): Inline UString's operator==, since it is called from hot places in the runtime. Also, specialize 2-char strings in a similar way to 1-char, since we're taking the hit of a switch anyway.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r43774 r43856  
    272272__ZN3JSC9constructEPNS_9ExecStateENS_7JSValueENS_13ConstructTypeERKNS_13ConstructDataERKNS_7ArgListE
    273273__ZN3JSCeqERKNS_7UStringEPKc
    274 __ZN3JSCeqERKNS_7UStringES2_
    275274__ZN3JSCgtERKNS_7UStringES2_
    276275__ZN3JSCltERKNS_7UStringES2_
Note: See TracChangeset for help on using the changeset viewer.