This project is archived and is in readonly mode.

#1150 ✓wontfix
csuwldcat

Investigate the use of all.tags on elements when retrieving elements by tag name

Reported by csuwldcat | January 18th, 2011 @ 04:47 AM | in 1.4.0 (closed)

In almost every case, using all.tags is faster in retrieving elements by their tag name. Retrieving less than 10 elements yields nearly identical results. Any query over ~10 matched elements amount records impressive speed gains. In tests of complex mixtures of content within the containing element, consistent performance gains of over 85% are recorded.

  • Matching elements by tag -

http://jsperf.com/all-tags-10-matched-elements

http://jsperf.com/all-tags-20-matched-elements

http://jsperf.com/all-tags-50-matched-elements

  • Matching elements by tag with mixed content present -

http://jsperf.com/all-tags-10-matched-elements-with-mixed-content

http://jsperf.com/all-tags-20-matched-elements-with-mixed-content

http://jsperf.com/all-tags-50-matched-elements-with-mixed-content

  • Matching elements by tag among complex mixed content -

http://jsperf.com/all-tags-matching-elements-with-complex-content

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Pages