[Webkit-unassigned] [Bug 55011] Fragment parsing does not need to use HTMLSourceTracker

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 22 22:43:05 PST 2011


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





--- Comment #10 from Andy Estes <aestes at apple.com>  2011-02-22 22:43:05 PST ---
(In reply to comment #4)
> The reason why we don't see the same thing with PerformanceTests/Parser/html-parser.html, is that html-parser and tiny-innerHTML are totally different benchmarks.
> 
> tiny-innerHTML doesn't really even make sense as a benchmark, and was only created to model Peacekeeper (which I believe to be a broken benchmark!).  tiny-innerHTML (and peacekeeper) are just taking very tiny numbers (the time it takes to innerHTML a single text node) and multiplying them by very very large numbers.  In the real world, we don't care if innerHTML of a single text string takes .5 miliseconds or .2 miliseconds. :)  Both are well beyond what any website uses.
> 
> html-parser.html on the other hand is a very useful benchmark.

I don't think we should discount the prevalence of repeated calls to innerHTML as a content generation technique. For instance, here's a benchmark from quirksmode comparing DOM API to innerHTML for creating a 50x50 table:

http://www.quirksmode.org/dom/innerhtml.html

One interesting thing this benchmark demonstrates is that, especially in IE, innerHTML is significantly faster than using DOM API. It seems likely that at least some content authors have used this as a rule of thumb and designed pages that rely on innerHTML to generate dynamic content. That convinces me that improving fragment parsing performance is an important task regardless of our opinions of Peacekeeper as a benchmark.

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