Ignore:
Timestamp:
Jan 24, 2022, 9:13:18 PM (3 years ago)
Author:
Cameron McCormack
Message:

Remove VM::stringCache
https://bugs.webkit.org/show_bug.cgi?id=235536

Reviewed by Sam Weinig.

We consult VM::stringCache when creating a JSString, but since
bug 142115 we never insert anything into it.

Removing this results in almost-significant improvements in the VueJS,
Vanilla-ES2015, and jQuery sub-tests of Speedometer 2 (of 0.5-2%,
0.03 <= p <= 0.05), and an almost significant 0.2% improvement in the
overall score (p = 0.06).

  • runtime/JSString.cpp:

(JSC::jsStringWithCacheSlowCase):

  • runtime/VM.cpp:

(JSC::VM::VM):

  • runtime/VM.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/VM.h

    r287582 r288537  
    586586    NumericStrings numericStrings;
    587587    std::unique_ptr<SimpleStats> machineCodeBytesPerBytecodeWordForBaselineJIT;
    588     WeakGCMap<StringImpl*, JSString, PtrHash<StringImpl*>> stringCache;
    589588    Strong<JSString> lastCachedString;
    590589    JSONAtomStringCache jsonAtomStringCache;
Note: See TracChangeset for help on using the changeset viewer.