- MooTools -
- March 19th, 2009,
- 1 Response
Sly– the super-snazzy selector engine
- 19 March
It's been quite a while now, since the initial release of MooTools 1.2– it would seem that much happened in the world of JavaScript frameworks– Dojo and jQuery got updated quite significantly, the last one gained a whole new selector engine, which works pretty snappy.
The time to get a new iteration of MooTools couldn’t get here any sooner… No one knows exactly what will the new version bring and no dates are released to the public. One thing we do know is that the selector engine (the very base of every framework) will get updated.
Meantime, in the Selector Engine War, a new player called Sly got promoted to a Colonel rank. Sly is a child of Harald Kirschner (of FancyUpload fame).
The speed result tests are pretty impressive– it’s at least 4x faster than MooTools’ currently embedded selector engine and twice as fast as the base selector engine for the 1.3 release.
And as much as I’d like to see this being included inside MooTools 1.3, the chances for it, are pretty slim. But fear not! If somebody out there, would like to use Sly as the default selector engine in MooTools, here’s how:
Window.implement({ $$: function(el){ return Sly.search(el); } });
Include this snipplet before your code/class/whatever.
One response so far. Care to add one yourself?
-
Henrik Lindqvist March 20th, 2009 at 01:56
Added Sly to our Slickspeed.