[webkit-changes] [WebKit/WebKit] b1bd90: Use WTF::equal() instead of memcmp() inside findTa...

Chris Dumez noreply at github.com
Tue Sep 6 16:16:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b1bd90212c604f7f5b7fb0e53250e48eeea63ec5
      https://github.com/WebKit/WebKit/commit/b1bd90212c604f7f5b7fb0e53250e48eeea63ec5
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2022-09-06 (Tue, 06 Sep 2022)

  Changed paths:
    M Source/WebCore/dom/make_names.pl

  Log Message:
  -----------
  Use WTF::equal() instead of memcmp() inside findTagFromBuffer()
https://bugs.webkit.org/show_bug.cgi?id=244847

Reviewed by Geoffrey Garen.

Use WTF::equal() instead of memcmp() for comparing strings inside
findTagFromBuffer(). WTF::equal() is meant exactly for this purpose
and is slightly more efficient.

* Source/WebCore/dom/make_names.pl:
(generateFindNameForLength):

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




More information about the webkit-changes mailing list