22 Mar 2011 11:53 AM #1
[OPEN-EXTJSIV-183] Slow container creation and browser crashing.
I have been working on an example for testing performance of object creation and eventing. I have a script that seems to work well, but it's horribly slow and actually kills something in the browser at some point.
I have attached a zip that contains my JS files (as well as ext) and the html loading page.
This essentially creates 150 containers with a text box & button. Clicking on a button causes a label change in the next box and clicks on that button.
This should all load fairly quickly, but takes so long to create the boxes that the browser tags it as unresponsive. You can let it continue, but it only ever gets 140 created. If you have the dev tools (in IE) open, it will crash the browser at 140 items.
22 Mar 2011 12:22 PM #2
We still have much optimization to do, particularly with framework initialization and layouts. This will be quite helpful, thank you for the sample.
22 Mar 2011 12:26 PM #3
The optimization was only one aspect here. The other was that it breaks and stops in IE after only 140 panels. There seems to be no indication of why it failed either.
It seems to show up fine in chrome (although it is slow there too).
Thanks for the quick reply!
23 Mar 2011 7:48 AM #4
I did find a short-term workaround for this (as the logic is, it works on 3.3 with namespace changes). In the viewport config block, adding suspendLayout: true and then setting to false at the end and forcing a manual layout allows this to work. After doing this, all 150 blocks show up and the time consumed is much more realistic.
23 Mar 2011 9:36 AM #5
I will have to check through how you are adding items to the container. This may be a case where you want to control it manually like this. Which is what suspendLayout is for.
By James Goddard in forum Ext:BugsReplies: 2Last Post: 7 Apr 2011, 5:35 AM
By ojajoh in forum Ext:BugsReplies: 2Last Post: 18 Mar 2011, 2:11 PM
By scottco in forum Ext Designer: BugsReplies: 8Last Post: 14 Jul 2010, 8:21 AM
By rockys in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 19 Jun 2009, 2:17 AM