Thank you Sebastian!
Now I think I got the path:
qx.core.Object has a class method called dispose and an instance method
called dispose.
Every instance of qx.core.Object is stored in the class attribute
qx.Class._db at instantiation time (by the constructor):
qx.core.Object._db.push(this);
The onunload event of the document fires the disposition of all
qx.core.Objects in the _db array by calling qx.Class.dispose. The
codepart with does the dispose is:
for (var i=qx.core.Object._db.length-1; i>=0; i--)
{
vObject = qx.core.Object._db[i];
if (vObject != null)
{
// logger.debug("Disposing: " + vObject);
vObject.dispose();
qx.core.Object._db[i] = null;
}
}
so the the dispose method of each instance of qx.core.Object (and its
subclasses) gets called.
In the instance dispose method the object properties and the object
userdata instances get deleted.
At the bottom of the dispose method there is a code part which I don't
understand:
// Delete Entry from Object DB
qx.core.Object._db[this._hashCode] = null;
delete qx.core.Object._db[this._hashCode];
So first the object reference is nulled and then it is deleted?
Sebastian Werner schrieb:
Implementation:
qx/core/Object.js => function qx.Class.dispose()
Call from:
qx/core/Init.js => function qx.Proto._onunload()
Hope this helps.
Sebastian
Dietrich Streifert schrieb:
Yes! Namespace branch. Revesion 3660.
Sebastian Werner schrieb:
namespace branch?
Dietrich Streifert schrieb:
@Sebastian:
can you please point me to the class/file where disposing gets started
on page unload and where the dispose (method/queue?) is called?
Thank you.
Sebastian Werner schrieb:
Hi Dietrich!
The disposers could get some optimization.
There are already some bugs existent to this topic:
http://bugzilla.qooxdoo.org/show_bug.cgi?id=39
http://bugzilla.qooxdoo.org/show_bug.cgi?id=102
Also here and there it's maybe possible to improve the performance of
the disposer.
Sebastian
Dietrich Streifert schrieb:
Hello Everybody,
I'm currently developing a big widget hierarchie (tabviews in tabviews
with many widgets) which is automatically disposed at page unload by the
qooxdoo queues.
This triggers the "stop unresponsive script" dialog in FireFox after 5
sec. of running. So not the long running disposer is the problem but the
dialog box is which needs user interaction to be closed by hitting the
correct button.
Is there a possibility to avoid this message? I know there is the
"dom.max_script_run_time" property in about:config but this is not an
option because the application should run out of the box without
modifying the firefox installation.
And in general: where are optimization possibilites to shorten die
disposing process? Which classes are taking long time to dispose. Do
class properties have any impact on the dispose process?
I'm using rev 3655 of the namespace branch.
Any help is appreciated.
Best regards...
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
|
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel