zoukankan      html  css  js  c++  java
  • android启动优化

    ##############################################
    #  power on till android lock screen comes up
    #
    #  get information :
    #               --- cat /proc/bootprof
    #               --- [kernel hacking]  --> show timing information on printks  
    #  note :  dont remove the battery , the nand will rescanning the file system  
    #  BootRom
    #  Small piece of code that is hardwired in the CPU ASIC which preload
    #  preload
    #  uboot
    #  kernel+BSP driver
    #  nand mount (ubifs, yaffs, exit4)
    #  zygote pre-load class (almost constant time)
    #  package scanning  (increased with more apk number)
    #       --- packageManagerService开机启动扫描,管理所有的apk
    #       --- 不单单是获取图标的,还要记录每个应用的activity的主图标,数目,名称,权限 ......
    #  apk init time  (depends on setup apk) 
    #  boot animation is a cpu consuming task 
    #
    ##############################################
    # how to reduce the boot time
    #  preload  (make sure processor clock rate is set max )
    #  uboot 
    #           ---Enable hardware ECC
    #           ---Remove unnecessary modules from u-boot.
    #           ---make sure that RAM timing values are adjusted properly so as to
    #               achieve optimal RAM throughput.
    #           ---Turn on I-Cache
    #
    #  kernel  
    #          --- disable log 
    #          --- improve the NAND throughput and the RAM throughput
    #          --- 修改内核img的打包方式,无压缩内核启动时间比较快,缺点是占用多一点的空间
    #  android 
    #          --- moving to UBIFS file system can significantly reduce the boot up time
    #          --- reduce  apk  (the best way)
    #          --- decrease file numbers and size (less size , less loading time)
    #          --- reduce/remove the android pre-loading classes (but the side effect is that when start a app will slow )
    #          --- reduce the animation  (low fps , low size picture)
    #          --- 启动systemserver的时候,减少我们的service启动项,剔除我们不需要的一些service
    #               在后台持续运行的守护进程,不断的去读取binder设备,看有没有访问系统service的请求。
    #          ---
    #
    #
    #
    ####################################################


  • 相关阅读:
    iOS 验证码按钮倒计时
    简单三层复习
    文件读写,改进版
    第一个文件读写的例子
    文件读写原理
    Ajax原理
    MVC,布局页面
    在MVC视图的代码块中,直接输出文本,有几种方式?
    MVC,如何在视图中声明方法,调用方法?
    MVC怎么在当前视图中,传递参数给到另外一个视图?
  • 原文地址:https://www.cnblogs.com/pangblog/p/3347791.html
Copyright © 2011-2022 走看看