WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
111247
Threaded HTML Parser should parse the first chunk on the main thread
https://bugs.webkit.org/show_bug.cgi?id=111247
Summary
Threaded HTML Parser should parse the first chunk on the main thread
Eric Seidel (no email)
Reported
2013-03-02 01:59:53 PST
Threaded HTML Parser should parse the first chunk on the main thread We may have to be slightly more careful about which bool we check, as we'll be in threaded mode w/o having started a background parser yet. But right before we would yield, we just pass our Tokenizer and HTMLToken off to a newly started background parser and then yield the main thread. I suspect this should be a win for small (<1k token) documents which can be parsed in a single chunk.
Attachments
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2013-03-02 23:39:32 PST
Yeah, this seems like it should be faster. We should fine a way to test the performance before landing it. The HTML spec parsing benchmark probably isn't the right thing since it's a big document. Maybe we should measure with telemetry's top25 page set?
Eric Seidel (no email)
Comment 2
2013-03-02 23:42:57 PST
Yes, I think Telemetry will be more interesting here. Something with lots of small resources should hit this? Then again, now that I think about it, I'm not sure small pages even show up in parse time given all the rest of the loader overhead. I suspect what this would actually make faster is the layout tests. :)
Ahmad Saleem
Comment 3
2023-09-20 17:46:49 PDT
@Chris - Do we have this or we can close this and blocker bugs in META bug?
Chris Dumez
Comment 4
2023-09-20 19:59:39 PDT
We are not using a multi-threaded HTML parser.
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