I think form.insert just does a regular Python list insertion (plus two other trivial function calls). Can you show the form.insert code as well as your alternative list code?
Anthony On Wednesday, May 30, 2012 8:12:39 AM UTC-4, DanielB wrote: > > Hi, > > I have a custom form that has a dynamic size with a for-loop that inserts > checkboxes into the form. > This works fine in small numbers, but when I increase the number of > checkboxes inserted I noticed the page takes longer and longer to load. > (obviously it's going to take longer but it's not linear) > > It seems that the form.insert code loops through all previous components > as well, is this by design and needed? > > If I don't use the form.insert and just use a list that I handle myself > it's much faster, but uglier and more code than if I could use form.insert. > > thankful for answers > > /Daniel >

