Re: "fast vs complete" is "SAX vs DOM"? and the IDs?

On 3/9/15 5:24 PM, Marat Tanalin wrote:
> As for your examples, the estimation I've requested is about a common/average case

OK.  Some more data:

cnn.com: ~3e3 elements.
gmail.com: Might depends on the size of your inbox, but for me
            right now 2.7e3 elements.
CSS Selectors level 3 REC: 2e3 elements.
Empty Google Docs spreadsheet: 3e3 elements.
jquery.com: 3e2 elements
https://chromium.googlesource.com/chromium/blink/+/master/Source/core/dom/Document.cpp: 
41e3 elements.
http://hg.mozilla.org/mozilla-central/file/23f1f0369df5/dom/base/nsDocument.cpp: 
39e3 elements
github.com: 1e3 elements
https://github.com/jquery/jquery/blob/master/src/core.js: 3e3 elements
https://github.com/jquery/jquery/blame/master/src/core.js: 5e3 elements

For what it's worth, slow-selector issues have come up before on github 
pages; see https://bugzilla.mozilla.org/show_bug.cgi?id=732667 for an 
example.  That link is now 404, but based on comparing to the jQuery 
pages I doubt it was more than 10e3 elements.

-Boris

Received on Tuesday, 10 March 2015 00:08:15 UTC