Bug 111247

Summary: Threaded HTML Parser should parse the first chunk on the main thread
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: abarth, ahmad.saleem792, cdumez, tonyg
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 111645    

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
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.