I just put a time start / end probes and found that each 50 times append loop
eats up almost 500 milliseconds. 
Between 465 and 515 on IE7 and between 500 and 575 on FF1.5.0.8
This means that a page with 10 loops, needs 5 seconds to end displaying!!
AND I was wrong before, each link is inside 2 divs, not 4.


Andrea Ercolino wrote:
> 
> I have got an array of 50 urls templates, and want to make a proper url
> out of each one, adding also a special click, and then append all these
> urls to a div in a specific position. All this should be done many times
> in a page, "many" could be 50, just to say something that could be
> possible, but it's really an unpredictable number of times. (well, less
> than a 100 is a good guess)
> 
> I think the problem lies in the dom creation. 
> Each link is inside 4 nested divs, so this could mean 80 bytes each
> (adding structure and data).
> At only 3 divs ( x 50 = 150 appends ) I'm experimenting a delay of a
> couple of seconds for reloading the page, and for this test the page has
> no content other than those divs!
> 
> 
> dave.methvin wrote:
>> 
>>> I've got a jquery script where I append (one by one) 50 new
>>> jquery objects to another jquery object, but it's taking way 
>>> too much time, so I thought that it could be faster if I make
>>> an array buffer out of them and then aggregate the array
>>> as a whole, but I don't find out how to do it.
>> 
>> Can you provide a little more detail about how you end up with 50 jQuery
>> objects that you need to combine?
>> 
>> 
>> _______________________________________________
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-add-a-js-array-of-jquery-objects-to-a-jquery-object--tf2614381.html#a7309457
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to