Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a288a8ec809b7ae932104ad4c4b78272214d80bd
https://github.com/WebKit/WebKit/commit/a288a8ec809b7ae932104ad4c4b78272214d80bd
Author: Yijia Huang <[email protected]>
Date: 2026-07-30 (Thu, 30 Jul 2026)
Changed paths:
A JSTests/microbenchmarks/string-case-conversion-prefix-copy.js
A JSTests/microbenchmarks/typed-array-indexof-uint16-uint32-boundary.js
M Source/WTF/wtf/text/AtomString.cpp
M Source/WTF/wtf/text/StringCommon.h
M Source/WTF/wtf/text/StringImpl.cpp
M Source/WTF/wtf/text/StringImpl.h
M Tools/TestWebKitAPI/Tests/WTF/StringCommon.cpp
M Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp
Log Message:
-----------
Widen find16/find32 SIMD threshold; speed up ASCII case-conversion prefix copy
https://bugs.webkit.org/show_bug.cgi?id=320578
rdar://183555635
Reviewed by Yusuke Suzuki.
This patch makes the following changes:
- find16()/find32(): drop the 32-element override so SIMD::find()'s own
smaller threshold applies, closing a scalar gap below it.
- StringImpl/AtomString case-conversion: bulk-copy the already-correct
prefix instead of a byte-at-a-time loop.
- containsOnlyLatin1(): delegate to the existing SIMD-accelerated
charactersAreAllLatin1().
ToT
Patched
typed-array-indexof-uint16-uint32-boundary. 17.2571+-0.1205 ^
15.9118+-0.1062 ^ definitely 1.0845x faster
string-case-conversion-prefix-copy 365.4766+-1.4266 ^
250.2327+-0.8555 ^ definitely 1.4605x faster
Tests: JSTests/microbenchmarks/string-case-conversion-prefix-copy.js
JSTests/microbenchmarks/typed-array-indexof-uint16-uint32-boundary.js
Tools/TestWebKitAPI/Tests/WTF/StringCommon.cpp
Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp
Canonical link: https://commits.webkit.org/318252@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications