Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d4e8e0b71c3e434c84f33a839d6d5c5a77a8d02e
      
https://github.com/WebKit/WebKit/commit/d4e8e0b71c3e434c84f33a839d6d5c5a77a8d02e
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-01-06 (Tue, 06 Jan 2026)

  Changed paths:
    M Source/WTF/wtf/text/StringCommon.h

  Log Message:
  -----------
  Unroll find64's loop per 4 elements
https://bugs.webkit.org/show_bug.cgi?id=305019
rdar://167658463

Reviewed by Mark Lam.

find64 is only handling 2 elements per iteration because SIMD vector
register size is 128. This patch adds several optimizations.

1. First do small loop not to start SIMD for small length.
2. Then, we do 4 vector registers per iteration, so partial unrolling.
3. Handle the remaining elements after this large loop.

* Source/WTF/wtf/text/StringCommon.h:
(WTF::find64):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to