[jQuery] Re: which query is most efficient?

2007-12-05 Thread sawmac
On Dec 4, 8:23 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > Dave, I know I am getting in here late, but I did a post on fast selectors > that may point you in the right > direction:http://benjaminsterling.com/jquery-what-are-the-fastest-selector/ Benjamin, very cool. Thanks for the lin

[jQuery] Re: which query is most efficient?

2007-12-05 Thread Benjamin Sterling
Thanks Amit, I appreciate that. On 12/5/07, Amit Uchat <[EMAIL PROTECTED]> wrote: > > Benjamin, > very good way to explain complex information. I would look forward to hear > more on your website. > > On Dec 4, 2007 8:23 PM, Benjamin Sterling < > [EMAIL PROTECTED]> wrote: > > > Dave, I know I am g

[jQuery] Re: which query is most efficient?

2007-12-04 Thread Amit Uchat
Benjamin, very good way to explain complex information. I would look forward to hear more on your website. On Dec 4, 2007 8:23 PM, Benjamin Sterling <[EMAIL PROTECTED]> wrote: > Dave, I know I am getting in here late, but I did a post on fast selectors > that may point you in the right direction:

[jQuery] Re: which query is most efficient?

2007-12-04 Thread Benjamin Sterling
Dave, I know I am getting in here late, but I did a post on fast selectors that may point you in the right direction: http://benjaminsterling.com/jquery-what-are-the-fastest-selector/ On 12/4/07, Flesler <[EMAIL PROTECTED]> wrote: > > > There is, it's called slick speed. > > Ariel Flesler > > On 4

[jQuery] Re: which query is most efficient?

2007-12-04 Thread Flesler
There is, it's called slick speed. Ariel Flesler On 4 dic, 19:48, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > This would make a great page. Put two selectors in and see which one is > faster. > Glen > > On Dec 4, 2007 10:29 AM, sawmac <[EMAIL PROTECTED]> wrote: > > > > > > > > $('p span'): 863ms

[jQuery] Re: which query is most efficient?

2007-12-04 Thread Glen Lipka
This would make a great page. Put two selectors in and see which one is faster. Glen On Dec 4, 2007 10:29 AM, sawmac <[EMAIL PROTECTED]> wrote: > > > > > $('p span'): 863ms > > $('p').find('span'): 3050ms > > Wow, that's a big difference. > Thanks Eric for running this test and thanks Gordon for

[jQuery] Re: which query is most efficient?

2007-12-04 Thread sawmac
> > $('p span'): 863ms > $('p').find('span'): 3050ms Wow, that's a big difference. Thanks Eric for running this test and thanks Gordon for pointing me to the Firebug profiler cheers --dave

[jQuery] Re: which query is most efficient?

2007-12-04 Thread Erik Beeson
console.time("$('p span')"); for(var i = 0; i < 1000; i++) $('p span'); console.timeEnd("$('p span')"); console.time("$('p').find('span')"); for(var i = 0; i < 1000; i++) $('p').find('span'); console.timeEnd("$('p').find('span')"); $('p span'): 863ms $('p').find('span'): 3050ms And from the prof

[jQuery] Re: which query is most efficient?

2007-12-04 Thread Gordon
I couldn't tell you which one is faster, but if you want to find out for yourself then you can use the profiler in FireBug. It's an addon for FireFox that has some powerful javascrip tools included. Write a short script with a function that runs the selector you want to profile in a loop, say 10