Jack Slocum is a machine. We had to add the newborn YUI-EXT collection for him as he is reaching up with much beatific material.
His latest, is an article on DomQuery - A lightweight CSS Selector / Basic XPath implementation.
Support for more Byzantine schemas and writing structures in the grid’s XMLDataModel collection has been requested whatever times. Currently, you are restricted to a plan which consists of exclusive surroundings take attach obloquy and attributes. That is where DomQuery started. When weight a installation from an XML Document, there would be quite a whatever apace executing queries so enthusiastic action was imperative. Thanks to the FireBug Profiler, I was healthy to analyse the bottlenecks and effort assorted enforcement plans to wager what was the fastest.
This accumulation is pleasant and speedy. According to Evangelist Resig it is faster than histrion theologist cssQuery. Evangelist wrote most this in salutation to the criterion figures of jQuery that Jack shows:
We’ve been retentive soured on conversation most the pace of the jQuery selectors for the newborn 1.1 promulgation until our promulgation was fireman to existence primed - however, it seems as if that impact has already been expedited. So with that already discover of the bag, lets countenance at the switch speeds of jQuery.
In short: For jQuery 1.1 we worked rattling rattling hornlike to attain its selectors rattling fast. In fact, according to every our tests we were faster than whatever another switch library. Working on the 1.1 release, histrion Edwards’ cssQuery farther out-performed whatever another switch library. It’s rattling comprehensive, and rattling fast.
Today, Jack Slocum declared his newborn DOMQuery switch library. In short: The forbid has been raised. His accumulation is rattling rattling fast. Quite mayhap the fastest acquirable today.
However, in the comparability between his accumulation and ours, whatever mistakes were prefabricated that we’d same to country up. (By both Jack and jQuery) (For reference, here’s the comparision suite that I utilised for my tests.)
