[TIMOB-15407] Android: Performance: String manipulation experiment
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-10-29T23:32:38.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | 2013 Sprint 22, 2013 Sprint 22 API, Release 3.2.0 |
Components | Android |
Labels | api |
Reporter | Hieu Pham |
Assignee | Hieu Pham |
Created | 2013-10-07T20:13:42.000+0000 |
Updated | 2017-03-22T22:48:51.000+0000 |
Description
In production builds, we're still calling "Log.d(TAG, a + b) " in many places (300+), generating unnecessary strings. We need to conduct an experiment to see how much memory and performance boost we'll get by removing these strings.
Experiment Results: 1. I created a native Android app printing Log.d(Tag, MSG) 20k times, 100x, then take the average. The average is ~220ms. This shows that the performance improvement is extremely negligible. 2. I then created a simple Titanium app, run it, and count how many logs we print. With one window, one button, and one view, we print 22 debug logs. This shows that the logs are not being used frequently. From these experiments, It is definitely not worth our efforts to optimize this process since we'll get nothing from it. Closing issue.
Closing ticket as fixed.