Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13711] Android: Experiment: TiUIView should be refactored from a push model to a pull model

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-05-06T21:59:16.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 09 API, 2013 Sprint 09
ComponentsAndroid
Labelsexperiment, performance
ReporterMatt Langston
AssigneeVishal Duggal
Created2013-04-29T18:46:54.000+0000
Updated2017-03-21T18:42:54.000+0000

Description

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.

Attachments

FileDateSize
Results.txt2013-04-29T20:58:43.000+000014985

Comments

  1. Vishal Duggal 2013-04-29

    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.
  2. Lee Morris 2017-03-21

    Closing ticket as fixed.

JSON Source