Harbs opened a new issue #641: Fix PAYG violations and code debt
URL: https://github.com/apache/royale-asjs/issues/641
 
 
   We have built up code debt by not being strict enough in PAYG. This issue is 
an attempt to track PAYG and code inflation problems and come up with solutions 
to fix them.
   
   I'm using HelloWorld to analyze and improve PAYG issues for now.
   
   Identified issues:
   - [x] Dependency on OSUtils
   - [x] Dependency on StringUtil
   - [ ] Minified code has many duplicate prototype definitions. You can find 
them by using the following RegExp: `(\w{0,})(\.prototype\.)(\w{0,})=\1\2\3;` 
Removing these reduced the compiled code of HelloWorld from 97,715 bytes to 
96,539 bytes.
   - [ ] Dependency on goog.events adds code dependencies on a lot of 
unnecessary code like browser sniffing. Much of this is even for older browsers 
that Royale does not support.
   - [ ] Reflection data is included for all classes used -- even if that 
reflection data is never actually used in the app. We should look for ways to 
eliminate reflection data not actually needed.
   - [ ] All package paths and classes are exported. This causes an non-trivial 
amount of code to be included.
   - [ ] All public functions are exported. This prevents dead code removal for 
functions not used and prevents function renaming. We should examine whether 
this can be improved.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to