[webkit-changes] [WebKit/WebKit] bacdbd: [JSC] Micro-optimize String equal operation with U...

Yusuke Suzuki noreply at github.com
Sat Feb 3 23:32:26 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bacdbdaaf1824b08dc7ad35035d5d8358be623c5
      https://github.com/WebKit/WebKit/commit/bacdbdaaf1824b08dc7ad35035d5d8358be623c5
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2024-02-03 (Sat, 03 Feb 2024)

  Changed paths:
    M Source/WTF/wtf/text/StringCommon.h

  Log Message:
  -----------
  [JSC] Micro-optimize String equal operation with UChar / LChar
https://bugs.webkit.org/show_bug.cgi?id=268684
rdar://122224476

Reviewed by Ryosuke Niwa.

This patch micro-optimizes String equal operation with different characters (UChar* and LChar*).

                                                         ToT                     Patched

    todomvc-javascript-es5-json-parse              37.6466+-0.1862     ^     37.1991+-0.1560        ^ definitely 1.0120x faster
    todomvc-javascript-es6-webpack-json-parse
                                                   58.9239+-0.3310     ^     58.2251+-0.1931        ^ definitely 1.0120x faster

* Source/WTF/wtf/text/StringCommon.h:

Canonical link: https://commits.webkit.org/274064@main




More information about the webkit-changes mailing list