Changes between Version 1 and Version 2 of question_performace


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

--

Legend:

Unmodified
Added
Removed
Modified
  • question_performace

    v1 v2  
    1 Q: 王健强反应魔方SDK操作要写sqllite令界面速度变慢 
    2 A: 经过测试每个页面打开的时候调用了 Mofang.onResume,30-50ms,这个是同步的,主要是调用了sharedpreferences.edit,要写rom,从traceview上看到大概会占整个操作5%的cpu事件 
     1 
     2== Q: == 
     3 王健强反应魔方SDK操作要写sqllite令界面速度变慢[[BR]] 
     4 
     5 
     6== A: == 
     7 经过测试每个页面打开的时候调用了 Mofang.onResume,30-50ms,这个是同步的,主要是调用了sharedpreferences.edit,要写rom,从traceview上看到大概会占整个操作5%的cpu事件 
    38http://typorrhea.wordpress.com/2010/10/31/android-sharedpreferences-edit-commit-is-expensive/ 文章说到这个操作比较耗时间,后续看能不能改其他或者编程异步[[BR]] 
    49