I don't think cache is worthy, as I have wrote few days ago considering the
brilliant strategy used by NWMatcher:
http://webreflection.blogspot.com/2009/10/nwmatcher-quick-look.html

In few words, we use jQuery to constantly manipulate the DOM, common tests
with the same selector repeated 100 times do not make sense in real case
scenarios.

It's like creating a static HTML page for one of those pages that keep
constantly changing, a wast of resources/time (speed) rather than
performances boost ... and for this reason considered a bad practice.

Diego strategy is probably something Sizzle should implement at some point,
not much for the DOM part and mutation events, but for specific pre-compiled
functions.

Just my opinion.

Regards


On Sat, Oct 10, 2009 at 3:46 PM, Oleg Slobodskoi <oleg...@googlemail.com>wrote:

>
> I was just playing with selector and tryied to cache the results and
> to do some benchmarks. The result is amazing.
>
> http://dev.ajaxsoft.de/cachedQuery/
>
> http://dev.ajaxsoft.de/slickspeed/
>
> The main problem is DOM manipulations.
>
> This was already discussed here:
>
> http://groups.google.com/group/jquery-dev/browse_thread/thread/bf2a17146c5c1ca5/d9465c32562af428?lnk=gst&q=DOMNodeInserted#d9465c32562af428
>
> I have tried both tests, and the result is exactly the same.
> http://hanblog.info/test/sizzle/sizzle-perf.html and
> http://hanblog.info/test/sizzle/nosizzle-perf.html
>
> Are the browsers now much better or the tests broken?
>
> If DOMNodeInserted and DOMNodeRemoved are still too havy, we could use
> just additional parameter (or something else) by the query e.g. jQuery
> ('selector', document, true) to define if the query can be cached or
> not.
>
> This could improve the performance of a lot of "dirty" written plugins
> etc.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to