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