[jQuery] Re: Performance of parent child selector vs .children() method

2009-05-29 Thread WD.acgrs
@Rob It is only true if the complexity of the DOM of those div is as simple as it is show in your test case. I have complex-ized the DOM and run the test, it does not show a big difference in 1000 run one, but a 1 run show that the selector is faster than POJS. So Adam, in conclusion, test

[jQuery] Re: Performance of parent child selector vs .children() method

2009-05-06 Thread Ricardo
On May 6, 10:23 am, Adam flynn...@gmail.com wrote: Essentially, I'd like to know if there is any difference between $(div.grandparent div.parent div.child) and $(div.grandparent).children(div.parent).children(div.child) Does anyone know which of these is more performant or preferred

[jQuery] Re: Performance of parent child selector vs .children() method

2009-05-06 Thread RobG
On May 7, 11:54 am, Ricardo ricardob...@gmail.com wrote: On May 6, 10:23 am, Adam flynn...@gmail.com wrote: Essentially, I'd like to know if there is any difference between $(div.grandparent div.parent div.child) and $(div.grandparent).children(div.parent).children(div.child)