Bug 292696
| Summary: | [Yarr] Improve efficiency of non-BMP character classes with a fixed size greater than 1 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Saboff <msaboff> |
| Component: | JavaScriptCore | Assignee: | Michael Saboff <msaboff> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Michael Saboff
When reading surrogate pairs, we have an optimization to advance 2 UTF-16 characters when the first code point we read is a non-BMP code point. That optimization involves checking the first code point loaded in the top level disjunction. That optimization uses a small set of instructions to check if we read the first code point and its size. For a character class consisting of only non-BMP characters, we don't need to perform the 'is this the first code point read and what its size" check when reading code points after the first code point.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/150893671>
Michael Saboff
Pull request: https://github.com/apple/WebKit/pull/3066
Michael Saboff
Pull request: https://github.com/WebKit/WebKit/pull/45260
EWS
Committed 294852@main (608810ff3697): <https://commits.webkit.org/294852@main>
Reviewed commits have been landed. Closing PR #45260 and removing active labels.