[dev-servo] Async HTML parsing

2017-03-02 Thread Nikhil Shagrithaya
Hi everyone,

 I've been contributing to Servo for a few months now (irc:
cynicaldevil), and I'm interested in taking up the project for moving
parser actions off the main thread as a part of GSoC. I've been reading the
relevant details linked from the issue page, and it seems like the first
step comprises of rewriting the TreeSink implementation in Servo to queue
parser actions instead of executing them directly. I have a few questions:

How will document.write() come into the picture? Will it be treated a
separate parser event?

Shouldn't it be possible to extend speculative parsing to continue parsing
HTML instead of just fetching other resources? Is there any reason this is
not done?

Thanks,
Nikhil Shagrithaya.

-- 
Nikhil Shagrithaya
BTech. Pre Final Year,
Computer and Communications Engineering
LNMIIT Jaipur
Ph No:9930929954
___
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo


Re: [dev-servo] Async HTML parsing

2017-03-02 Thread Boris Zbarsky

On 3/2/17 2:40 PM, Nikhil Shagrithaya wrote:

Shouldn't it be possible to extend speculative parsing to continue parsing
HTML instead of just fetching other resources?


For what it's worth, Gecko does this: speculatively tokenizes off-thread 
even if the parser is blocked.


If a document.write() of an unbalanced subtree happens that means 
throwing away the speculative tokenization, of course.


-Boris
___
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo