[webkit-changes] [WebKit/WebKit] c5bb7e: Add a fast abort path for StringImpl's equalIntern...

Chris Dumez noreply at github.com
Fri Mar 31 21:59:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c5bb7e500378f892814484eca2648286358c10ae
      https://github.com/WebKit/WebKit/commit/c5bb7e500378f892814484eca2648286358c10ae
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-03-31 (Fri, 31 Mar 2023)

  Changed paths:
    M Source/WTF/wtf/text/StringImpl.cpp

  Log Message:
  -----------
  Add a fast abort path for StringImpl's equalInternal()
https://bugs.webkit.org/show_bug.cgi?id=254766

Reviewed by Darin Adler and Geoffrey Garen.

Abort early if the first character is not equal instead of calling
equal() with all the characters unconditionally.

* Source/WTF/wtf/text/StringImpl.cpp:
(WTF::equalInternal):

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




More information about the webkit-changes mailing list