Bug 304792
| Summary: | Optimize StringImpl::create8BitIfPossible() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> |
| Component: | Web Template Framework | Assignee: | Chris Dumez <cdumez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Chris Dumez
Optimize StringImpl::create8BitIfPossible(). Avoid allocating new string unnecessarily in the "slow" path. Rely on highly optimized `copyElements()` to copy characters in the fast path. This results in a 0.42-0.44% speedometer on Mac with 98% confidence.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chris Dumez
Pull request: https://github.com/WebKit/WebKit/pull/55953
Radar WebKit Bug Importer
<rdar://problem/167662275>
EWS
Committed 305259@main (56dcc0037aa2): <https://commits.webkit.org/305259@main>
Reviewed commits have been landed. Closing PR #55953 and removing active labels.