On 1/20/11, Steven Yang <kenshin...@gmail.com> wrote:
> Hi
> as I remembered a while ago maybe at jQuery 1.2x or 1.3x, people recommended
> using .find or $(selector, context), one thing is simply because .find was
> just faster. Then I think it was John himself said that they both should do
> the same thing (performance wise). Now at jQuery 1.4 or 1.5, I think the two
> methods should be the same speed.
Why? jQuery switches between native querySelectorAll and Sizzle. Or "oldSizzle".

I explained in "JavaScript Query Engines" -- see subsection "Native
First Dual Approach":
http://dhtmlkitchen.com/?category=/JavaScript/&date=2010/09/09/&entry=JavaScript-Query-Engines#broken-by-design
-- 
Garrett

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to