It  isn't  shocking  that  running hasClass()»contains()»indexOf() and
set()  is marginally slower than running only exec() (on a preexisting
regex)»direct property set. Not that it isn't mildly interesting, just
not anything actionable IMO.

It would be shocking if just indexOf()»direct property set were slower
than exec()»direct property set. But it isn't: it's 2-3x faster.

So  the  only  conclusion here is that "Moo wrappers add overhead that
might, in quantity, cause some methods to fall behind otherwise clunky
JS."  But  don't we know that already from peeking at Core?

Anyway, _my_ feeling is that this would be better done with stylesheet
scripting  until  I  hear  deeper  requirements.  And  the  stylesheet
scripting will beat everyone else's a--. :P

-- S.

Reply via email to