[jQuery] How to speed up JQuery?

[jQuery] How to speed up JQuery?

Hi all,
maybe I am doing something very wrong but JQuery seems to awfully slow
on large documents. I have one with ~100K size and about 500 divs in it.
Within the document, I have a code section that looks like this:
...
<div id="hook">
...
<div class="item">...</div>
<div class="item">...</div>
<div class="item">...</div>
(~50 items)
...
</div>
...
On document.ready I do this:
console.time('items');
$('div.item').each(function(){
// nothing in here to test the raw speed of the selector
});
console.timeEnd('items');
And it takes about 3(!) seconds to pass the "each"-code. I have also
tried it this way:
console.time('items');
$('#hook div.item').each(function(){ // <== *here is the change to the
above code*
// nothing in here to test the raw speed of the selector
});
console.timeEnd('items');
But it makes no difference. What can be done to speed this up significantly?
Thanks for your help!
Cheers, Arash
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/