GitHub Issue | n/a |
Type | Story |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-06T21:59:16.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 09 API, 2013 Sprint 09 |
Components | Android |
Labels | experiment, performance |
Reporter | Matt Langston |
Assignee | Vishal Duggal |
Created | 2013-04-29T18:46:54.000+0000 |
Updated | 2017-03-21T18:42:54.000+0000 |
1. Design an experiment to measure the validity of the hypothesis "TiUIView should be refactored from a push model to a pull model".
2. Run the experiment and collect the data.
3. Analyze the data.
4. Create a short writeup presenting results and conclusions.
The Experiment Open/Close a predefined lightweight window with 100 children. Each child defines top, left, width and height. Move the processing of the layout params for TiCompositeLayout from processProperties to handleCreationDict essentially reducing the operations on the UI Thread when creating a view. The commit for the change is here https://github.com/vishalduggal/titanium_mobile/commit/c52cf9eb8263e3a4eb805892eb5e3c17c3071358 The branch can be found here https://github.com/vishalduggal/titanium_mobile/tree/android_experiments The results are attached in Results.txt Average Reduction is about 40ms (.4 ms per view). This experiment touches the cheapest part of the createView process. Gains for processing background and border properties should be greater.
Closing ticket as fixed.