Hugh Gibson schrieb:
> I found the --obfuscate-identifiers option to generator.py, and tried it out.
>
> It reduced the built script size by around 5%, but there were lots of 
> function calls and properties which were still in plain text.
>
> As there is now a single script generated by the compiler, it seems to me 
> that there is potential for very aggressive optimisations of every function 
> name and property, including the namespaces. I'm guessing that it would halve 
> the size of the script.
>
> Is this in the pipeline?
>   
Hi Hugh,

obfuscation of function or namespace names is problematic in JavaScript. 
There is no safe way to rename a function because the programmer can 
"calculate" the function name.

What is someone writes code like this:

var package = "ui"  
alert(qx[ui])

Others do this kind of obfuscation (I think dojo does) and it should not 
be too hard to implement but it always puts constraints on how you can 
call the functions and potentionally breaks existing code. There are no 
plans to implement this in the short term could land in qooxdoo sometime.

Best Fabian

-------------------------------------------------------------------------
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

Reply via email to