Hello again,

I've looked at what gets generated by a ./generate build of my
application and I think there is room for much improvement. Is any of
the following (sorted from easy to hard) planned?

Should do (IMO)
=============

- loader code optimization: the "part loader" code, seem to not be
optimized at all: it contains comments, indentation, etc... Besides,
it "leaks", the global variable "isMshtml" (ie a variable not in the
qooxdoo namespace): is it intended or an oversight?

- better resource key names to save space.
Currently, the way to represent combined images is very wasteful:
Couldn't this:
 "qx/decoration/Modern/shadow/shadow-small-r.png": [5, 136, "png",
"qx", "qx/decoration/Modern/shadow-small-lr-combined.png", 0, 0],
be transformed to something like this:
"qx/decoration/Modern/shadow/": {
    "shadow-small-r.png": [5, 136, "png", "qx", "small-lr-combined.png", 0, 0],

The code would probably be very slightly more complex, but it would be
worth it IMO.

- better translations key names to save space
As for resource names, it is currently very wasteful and almost ridiculous:
Couldn't this

"cldr_month_abbreviated_11": "Nov", "cldr_month_abbreviated_10": "Oct", ...

be changed to something like this:

"month": {
    "abbreviated": {
         10: "Oct",
         11: "Nov",
         ...

And in this case, even the code would probably be simpler than currently.

- newline stripping

I think this used to be possible with the 0.7 build system, but I
can't find a way to enable this in 0.8.

- not "optimizing" string literals that are used only once.

There are lot of those and this waste space and possibly a bit of load time.

Could do but probably hard
======================

- optimization of protected/public method and variable names, a

- optimization of class names.

- removal of unused code (methods).

Dreamland
=========

- automatic inlining of code if space is saved. Could possibly also
add a configurable speed/space tradeoff factor: "inline even if
resulting code is X larger".
This would save quite some space *and* make the code run faster.


-- 
Gaƫtan de Menten
http://openhex.org

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to