[jQuery] Re: empty() is very slow

2009-08-26 Thread oleOhle
OK, thanks everybody! I think I understand. Actually my second attempt could easily be rewritten to match exactly what jQuery does. It really boils down to the remove() function, which does some magic to remove data and events related to the contained DOM elements. Since I only have one HTML onCl

[jQuery] empty() is very slow

2009-08-26 Thread oleOhle
While writing my first jQuery application I encountered a performance issue whichs casts doubts on the suitability of jQuery for my purposes in general. The "issue": In my page I have a dynamically filled which in the end contains about 10 elements, one of which is a table with 1000 rows. Now wh