Changes between Initial Version and Version 1 of question_performace


Ignore:
Timestamp:
08/15/2014 04:02:37 PM (12 years ago)
Author:
liaojiaohe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • question_performace

    v1 v1  
     1Q: 王健强反应魔方SDK操作要写sqllite令界面速度变慢 
     2A: 经过测试每个页面打开的时候调用了 Mofang.onResume,30-50ms,这个是同步的,主要是调用了sharedpreferences.edit,要写rom,从traceview上看到大概会占整个操作5%的cpu事件 
     3http://typorrhea.wordpress.com/2010/10/31/android-sharedpreferences-edit-commit-is-expensive/ 文章说到这个操作比较耗时间,后续看能不能改其他或者编程异步[[BR]] 
     4 
     5Mofang.onEvent 150-200ms,不过这个本身就是在AsyncHttpHandler里面,只要把它放在最后,应该不会影响用户界面感受,不过要写rom或者sd卡的操作其实是挺慢的[[BR]]