> > Creation of individual DOM elements in javascript seems to be pretty slow > > (it is a bit faster in the new generation browsers ff3, Safari4 and chrome) > > but setInnerHTML() doesn't create those elements in javascript, it is done > > natively in the browser and thus is much faster. > > I'd need to see a benchmark that that is indeed the case. I don't > have time right now (I'll experiment later if I have the chance). But > it seems wrong that creating the DOM elements in javascript is slower > than having the browser do it natively (the cost of modifying the DOM > should be the dominant factor by far).
Seriously, this is not even close. In IE for a table as small as 50 rows with 15 columns, you're looking at a few seconds with the DOM and below 100ms with innerHTML. (on a dev laptop here anyway). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
