Hi all (especially the "core" of qooxdoo)
i have had another  idea of sppeding up the loading time of a qooxdoo - app.
just a idea, nothing "real" but i want to discuss this first before i start the implementation.

what about enhancing "my" qodxoo.php server-file in the following manner:

1) There is a list of the dependencies of the *.js classes inside every file (for the "normal" compiler). the php-precompiler needs to know this dependencies (don't know how, but this is another "problem")

2) There is another "compiler" which parses the Js-Files, the app needs and generates a long string with the needed classes - for example "QxNativeWindow,QxTimer,QxLabel". (I think at the first time every developer can do this by his own without need of a "compiler") and writes this string inside the App-JavaScript-File (for example var __objStr='QxNativeWindow,QxTimer,QxLabel'). Then the next step is not to include the qooxdoo.js but the qooxdoo.php file from the server
<s cript language="JavaScript" src=<<path>>/qooxdoo.php?o=<<__objStr>>.

3) the file qooxdoo.php at the server gets the needed object-String and generates a MD5 of it. this md5 is a "fileName". If this file is available at the server-side, the server will return the comtent of this script (like it does til now). if this file is NOT available, the qooxdoo.php will look at the objects, their dependencies and will generate such a file (like make.sh does locally).

The "trick" is, that there are many users who opens the same qooxdoo-app and so there may be only a vew different objectString and so only a vew "precompiled" files.

what do you thing about?

if sebastian and some others like this idea an are willing to help me (not with implementation, with tipps!) i am willing to implement such a php - file. i know, this is php and not js and outside of the scope of qooxdoo but i think it is a nice feature to dramatically speed up the starting time of a qooxdoo-app if you have php at sour server

Olli



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to