View Full Version : Peformance... bug?!
rounder
04-26-2007, 03:04 PM
I've noticed a very strange (for me) issue. Creating of BasicDialog is quite quick operation in FF2 and IE7... but is quite slow and CPU intensive in IE6. I've tried both YUI and prototype. I don't know if this is a bug or an issue of IE6.
tryanDLS
04-27-2007, 02:22 PM
Do you see this with example dialog or with code you've built?
rounder
04-27-2007, 03:12 PM
Yes I see it with the example on the site. It can be observed it only the first time you are showing the dialog, because the second, third and so on times it is only shown after it is hidden. Only the first time it is actually created.
See the "Hello World" example.
tryanDLS
04-27-2007, 03:45 PM
I don't see this at all - no noticeable diff between FF and IE6. Are you sure there's nothing odd about your IE6 settings?
rounder
04-27-2007, 05:31 PM
Here I've packed you a simple page that creates dialogs. When I'm using IE6, every time I press create got like 1sec lag and the clock cursor. Try it.
P.S. You have to copy the ext-all.js and the resource directory in it.
Thanks.
dfenwick
04-27-2007, 06:31 PM
Here I've packed you a simple page that creates dialogs. When I'm using IE6, every time I press create got like 1sec lag and the clock cursor. Try it.
P.S. You have to copy the ext-all.js and the resource directory in it.
Thanks.
You're creating a new dom element for every time you show the dialog. I slightly modified your code to do lazy dialog loading (sample of this in the examples/dialog/hello.js example) and it's pretty much instantaneous now. It's important to limit the creation of dom elements as much as you can. That's always a time consuming process.
rounder
04-28-2007, 05:03 AM
That was the point of the example. To show the slowness of IE6 during creation of new BasicDialog... In FF and IE7 it is fast even creating new DOM elements every time. And when you have to create new dialogs every time and to show many dialogs at a time... I don't know if it is possible to do lazy dialog loading.
tryanDLS
04-28-2007, 05:19 PM
Well that's the point - DOM creation in IE6 is inherently slow! I'm sure you can find other comparisons on the web, but you can read this blog post (http://www.jackslocum.com/blog/2006/10/06/domhelper-create-elements-using-dom-html-fragments-or-templates/) where Jack does some profiling of the different methods.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.