OK, found my old work on IE & XML for your continued reference.

    http://jsfiddle.broadleafsystems.com/FrTQc/21/
    
Uses getElementById when available, falls back to selectSingleNode
otherwise. Then also runs w/Slick if possible.

I also do a getElementById on similarly structured HTML markup (not
the XML response) for a performance reference.

On my machine:

· selectSingleNode-against-XML is 2x slower than
getElementById-against-HTML within IE 8

· getElementById-against-XML is only slightly slower than
getElementById-against-HTML in Firefox 15, and they're both
rocket-fast compared to IE

· even so, selectSingleNode/IE is still 25% faster than Slick/Firefox
15; Slick is still the slowest dog in the bunch

That last tidbit is a bit apples-and-oranges, but regardless I would
not use Slick against XML if you don't have to (i.e. if you can craft
your XML to fit the task and you don't need Slick's fancy selectors).

-- S.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"MooTools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mootools-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to