[webkit-changes] [WebKit/WebKit] 4084ca: Apply SIMD table lookup to 16bit characters in HTM...
Yusuke Suzuki
noreply at github.com
Mon Jul 8 10:21:47 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4084cae3554fdd89eff4bd49cb60b0f4944142a2
https://github.com/WebKit/WebKit/commit/4084cae3554fdd89eff4bd49cb60b0f4944142a2
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2024-07-08 (Mon, 08 Jul 2024)
Changed paths:
M Source/WTF/wtf/SIMDHelpers.h
M Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp
Log Message:
-----------
Apply SIMD table lookup to 16bit characters in HTML fast path parser
https://bugs.webkit.org/show_bug.cgi?id=276244
rdar://131153910
Reviewed by Justin Michaud.
280670 at main applied SIMD table lookup to 8bit characters. But since searching characters are all ASCII,
this method can be easily applied to 16bit characters too: Use NEON SIMD to load 16bit characters in interleaved manner (lowers and uppers),
and checking uppers are zero and lowers are searching characters via table lookup.
* Source/WTF/wtf/SIMDHelpers.h:
(WTF::SIMD::findInterleaved):
* Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:
(WebCore::HTMLFastPathParser::scanText):
(WebCore::HTMLFastPathParser::scanAttributeValue):
Canonical link: https://commits.webkit.org/280741@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list