Could someone explain a bit on document fragments?
I see, for a large page, that a document is created and then a number of fragments. Are these fragments all then merged into that document? Or are they merged into one another, forming a new document somehow? Where is that done? What would be a acceptable way to measure the total time spent parsing? Going from parser creation to parser finish doesn't work when there are many document fragments, each with it's own parser. Should I add up the time spent in all of the parsers? Thanks, --Murph
Resig has a nice explanation: http://ejohn.org/blog/dom-documentfragments/ or see the DOM spec. DocumentFragments have little to do with parsing. I'm actually writing a blog post about the DocumentParser system right now. Should be on webkit.org/blog next week. We already have profiling information about total time spent parsing. See the inspector timeline view. -eric On Fri, Aug 20, 2010 at 11:00 AM, Matt 'Murph' Finnicum <mattfinn@gmail.com> wrote:
I see, for a large page, that a document is created and then a number of fragments. Are these fragments all then merged into that document? Or are they merged into one another, forming a new document somehow? Where is that done?
What would be a acceptable way to measure the total time spent parsing? Going from parser creation to parser finish doesn't work when there are many document fragments, each with it's own parser. Should I add up the time spent in all of the parsers?
Thanks, --Murph _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
participants (2)
-
Eric Seidel
-
Matt 'Murph' Finnicum