WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
262498
Use StringView in CSSParserToken and simplify its code
https://bugs.webkit.org/show_bug.cgi?id=262498
Summary
Use StringView in CSSParserToken and simplify its code
Chris Dumez
Reported
2023-10-02 12:50:43 PDT
Use StringView in CSSParserToken and simplify its code. Previously, CSSParserToken wasn't using StringView internally for better bit packing, as the size of this object matters a lot. Instead, do better bit packing in StringView so that CSSParserToken can use it without increasing its size (24 bits on my macBookPro M1). To better bit-pack StringView, we rely on PackedPtr to fit the is8Bit flag in the same word as the character pointer. This is performance neutral on Speedometer.
Attachments
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2023-10-02 12:53:51 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/18508
EWS
Comment 2
2023-10-02 20:09:40 PDT
Committed
268760@main
(855b9cf6ef5a): <
https://commits.webkit.org/268760@main
> Reviewed commits have been landed. Closing PR #18508 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2023-10-02 20:10:15 PDT
<
rdar://problem/116381450
>
WebKit Commit Bot
Comment 4
2023-10-13 19:22:07 PDT
Re-opened since this is blocked by
bug 263153
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