[TIMOB-13697] MobileWeb: Optimize declare()
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-07-24T17:11:37.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 16, 2013 Sprint 16 Core, Release 3.2.0 |
Components | MobileWeb |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2013-04-27T04:18:22.000+0000 |
Updated | 2017-06-05T23:06:57.000+0000 |
Description
declare() is Mobile Web's magical function for creating instantiable objects. It support multiple inheritance, but no where do we actually use multiple inheritance. Furthermore, we need to optimize the generated classes as much as possible at the time of declaration instead of runtime.
Pull request: https://github.com/appcelerator/titanium_mobile/pull/4229
To test: 1. Run the layout performance test from https://github.com/appcelerator/titanium_mobile_performance_tests. This will demonstrate the poor performance prior to the fix. 2. Run KitchenSink to demonstrate that there were no regressions. Generally if one thing works, everything will work.
Due to a broad field for verification, I am leaving it resolved/not closed. Ran https://github.com/appcelerator/titanium_mobile_performance_tests and Kitchen Sink. Appcelerator Studio, build: 3.2.0.201312091648 Titanium SDK, build: 3.2.0.v20131210112451 Mac osx 10.9 Mavericks Safari 7