[Webkit-unassigned] [Bug 90751] New: Introduce speculative HTML parsing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 8 22:36:17 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=90751

           Summary: Introduce speculative HTML parsing
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: skyul at company100.net


Make HTMLDocumentParser parse the remaining input stream speculatively while it is waiting for scripts. If the pending script doesn't end up calling document.write(), the speculation is successful.

We can borrow the idea of Firefox's HTML parser threading:

https://developer.mozilla.org/en/Gecko/HTML_parser_threading

We can implement speculative parsing with or without moving HTML parsing off the main thread. My plan is two steps: step 1 is to implement speculative parsing in the main thread and step 2 is to make HTML parsing off the main thread.

Also preload scanning and speculative parsing can be combined because they can share the same tokenizer.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list