Hi devs, today I tested very simple code (which creates a lot of widgets) using a qooxdoo playground and I wonder why after render browser still takes so much CPU (Chrome, 12% CPU on my machine).
It's part of some performance tests I did. The interesting thing is that firefox doesn't need so much CPU (around 2-4%), but there is still consumption. Can anybody verify that it's normal behavior? My testing code: http://demo.qooxdoo.org/devel/playground/#%7B%22code%22%3A%22%252F%252F%2520Document%2520is%2520the%2520application%2520root%250Avar%2520doc%2520%253D%2520this.getRoot()%253B%250A%250Avar%2520main%2520%253D%2520new%2520qx.ui.container.Composite().set(%257B%250A%2520%2520layout%253A%2520new%2520qx.ui.layout.VBox(5)%250A%257D)%253B%250A%250Avar%2520button%2520%253D%2520new%2520qx.ui.form.Button(%2522Add%2522)%253B%250Avar%2520container%2520%253D%2520new%2520qx.ui.container.Composite().set(%257B%250A%2520%2520layout%253A%2520new%2520qx.ui.layout.VBox(5)%250A%257D)%253B%250A%250Amain.add(button)%253B%250Amain.add(container)%253B%250Adoc.add(main)%253B%250A%250A%252F%252F%2520----------------------------------------------------------------------------%250A%250Aqx.Class.define(%2522MyBox%2522%252C%2520%257B%250A%2520%2520extend%253A%2520qx.ui.container.Composite%252C%250A%2520%2520%250A%2520%2520construct%253A%2520function()%2520%257B%250A%2520%2520%2520%2520this.base(arguments)%253B%250A%2520%2520%2520%2520this.setLayout(new%2520qx.ui.layout.HBox(5))%253B%250A%250A%2520%2520%2520%2520this.%2524button%2520%253D%2520new%2520qx.ui.form.Button(%2522Del%2522)%253B%250A%2520%2520%2520%2520this.%2524button.addListener(%2522execute%2522%252C%2520function(e)%2520%257B%250A%2520%2520%2520%2520%2520%2520container.remove(this)%253B%250A%2520%2520%2520%2520%257D%252C%2520this)%253B%250A%2520%2520%2520%2520%250A%2520%2520%2520%2520this.add(new%2520qx.ui.form.Button(%2522Action%25201%2522))%253B%250A%2520%2520%2520%2520this.add(new%2520qx.ui.form.Button(%2522Action%25202%2522))%253B%250A%2520%2520%2520%2520this.add(new%2520qx.ui.form.Button(%2522Action%25203%2522))%253B%250A%2520%2520%2520%2520this.add(new%2520qx.ui.form.Button(%2522Action%25204%2522))%253B%250A%2520%2520%2520%2520this.add(this.%2524button)%253B%250A%2520%2520%257D%252C%250A%2520%2520%250A%2520%2520members%253A%2520%257B%250A%2520%2520%2520%2520%250A%2520%2520%257D%250A%257D)%253B%250A%250Abutton.addListener(%2522execute%2522%252C%2520function(e)%2520%257B%250A%2520%2520var%2520item%2520%253D%2520new%2520MyBox()%253B%250A%2520%2520container.add(item)%253B%250A%257D)%253B%250A%250Afor%2520(var%2520i%2520%253D%25200%253B%2520i%2520%253C%25201000%253B%2520i%252B%252B)%2520%257B%250A%2520%2520var%2520item%2520%253D%2520new%2520MyBox()%253B%250A%2520%2520container.add(item)%253B%250A%257D%250A%22%2C%20%22mode%22%3A%22ria%22%7D ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
