[webkit-changes] [WebKit/WebKit] 977200: Add a fast path for SpaceSplitString
Ryosuke Niwa
noreply at github.com
Tue Feb 13 14:19:41 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9772004a36829bc34707a65c514b7c097ad5c0d9
https://github.com/WebKit/WebKit/commit/9772004a36829bc34707a65c514b7c097ad5c0d9
Author: Ryosuke Niwa <rniwa at webkit.org>
Date: 2024-02-13 (Tue, 13 Feb 2024)
Changed paths:
M Source/WebCore/dom/SpaceSplitString.cpp
Log Message:
-----------
Add a fast path for SpaceSplitString
https://bugs.webkit.org/show_bug.cgi?id=269272
Reviewed by Yusuke Suzuki.
Avoid looking up AtomString table when the entire string constitutes a single token.
* Source/WebCore/dom/SpaceSplitString.cpp:
(WebCore::TokenAtomStringInitializer::TokenAtomStringInitializer):
(WebCore::TokenAtomStringInitializer::processToken):
(WebCore::SpaceSplitStringData::create):
Canonical link: https://commits.webkit.org/274576@main
More information about the webkit-changes
mailing list