WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
288102
[Yarr] Improve processing of an alternation of strings
https://bugs.webkit.org/show_bug.cgi?id=288102
Summary
[Yarr] Improve processing of an alternation of strings
Michael Saboff
Reported
2025-02-20 08:38:12 PST
Several web applications use RegExp's to parse tokens. For example /^(?:if|then|else|switch|break|case|which|do|for)/. Since an anchor regular expression like this is only evaluated once, we can simplify the processing of a string list like this.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-02-20 08:38:42 PST
<
rdar://problem/145222010
>
Michael Saboff
Comment 2
2025-02-20 11:10:20 PST
Pull request:
https://github.com/WebKit/WebKit/pull/40985
EWS
Comment 3
2025-02-21 07:30:56 PST
Committed
290791@main
(12c34ef5e305): <
https://commits.webkit.org/290791@main
> Reviewed commits have been landed. Closing PR #40985 and removing active labels.
WebKit Commit Bot
Comment 4
2025-02-21 12:54:55 PST
Re-opened since this is blocked by
bug 288226
Michael Saboff
Comment 5
2025-02-24 13:28:37 PST
Pull request:
https://github.com/WebKit/WebKit/pull/41227
EWS
Comment 6
2025-02-24 14:35:50 PST
Committed
290982@main
(5d4feeaef67a): <
https://commits.webkit.org/290982@main
> Reviewed commits have been landed. Closing PR #41227 and removing active labels.
EWS
Comment 7
2025-03-25 15:45:20 PDT
Committed
289651.322@safari-7621-branch
(0cdbef833e37): <
https://commits.webkit.org/289651.322@safari-7621-branch
> Reviewed commits have been landed. Closing PR #2870 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug