Even under the polyfills, 500 elements takes ~200ms for me. Is this what you see?
http://jsbin.com/luyibufu/1/edit On Mon, Mar 3, 2014 at 2:29 PM, <[email protected]> wrote: > I have a simple element imported to the index.html > <link rel="import" href="elements/radio.html"> > > it just display radio button. > > then try to create dynamically XXX elements > > document.addEventListener('polymer-ready', function(){ > var doc = document.createDocumentFragment(), el = null; > for(var i =100; i-- > 0;){ > el = new RadioElement(); > doc.appendChild(el); > } > document.body.appendChild(doc); > }); > > the most time-cost line is: doc.appendChild(el); > > for 100 elements it take 30ms > for 300 - 26s > for 500 - more than 1 min. > > Maybe I had made mistake somewhere. I stacked. > > Follow Polymer on Google+: plus.google.com/107187849809354688692 > --- > You received this message because you are subscribed to the Google Groups > "Polymer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/polymer-dev/5bfdb37d-f005-423d-9dbb-ed5244f44d34%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CACGqRCDJGXE%2BhAD1i-BsCU6o0sYjeSO1SartdrET7Z7k5DpsdA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
