This is a lesson that the Android team shared one months ago, wrote a note in a lecture, was written in a book, and felt pretty good.
, it is saved in the blog, it is convenient to look back.
He used to work for Intel Corporation, which is related to chip design, although the title of this course is related to Android, but for Windows Mobile development
should have reference meaning. Chip-related terminology is not understood, but the recommendations on application energy consumption are good, mostly common:
1) screen brightness and power consumption relationship 2) Save the user does not care about the electricity. For example, if the user is charging, can be downloaded and other intensive tasks can be carried out, because the power consumption will be replenished quickly 3) The positioning module consumes more electricity. Mobile phone In the absence of signal, will be frequently looking for signals, at this time more power consumption 4) leakage power (chip additional consumption, such as the chip on the 0, 1 potential, the current in the conductor): chip leakage, the higher the temperature, the more leakage (exponential relationship) 5) Power Measurement:1> Professional tools 2> Android API (guess the power statistics of the win RT system will be available to third-party app calls) 6) Lazyfirst, do not work too hard to do all kinds of operations (I understand that delay loading, only do the necessary network requests and Operations) 7) try to speed up the file download, Increase download speed and reduce download time (guessing that network requests and file reads and writes are the main cause of power consumption, so the shorter the download time, the lower the battery consumption) 8) The server-side text content is best compressed (such as GZIP compression.) Can be set "request Headers" to notify the server to compress) 9) Not urgent work and operations, accumulated to do together (such as the multiple URI request to merge into a URI request), or when the user charges, in the background to complete 10) on-demand dynamic loading, unloading (for example, the WP-side SDK provides the Li Stbox through the Virtualstackpanel to dynamically load the item, the principle is to determine whether the current item is in the screen, to dynamically create and delete, if the user continuously up, down, on the CPU compute more) 11) careful weaklook (I understand that WP End of the app, if the user does not interact with the screen, avoid calling the screen "solid" API, or prevent operating system sleep) 12) It is recommended to use less floating-point operations, as far as possible to integer operations, thereby reducing the CPU Consume 13) reduce the generation and destruction of complex structures over and over again 14) use efficient text Format (JSON, XML, etc.) parser 15) using caching to reduce memory (I understand that infrequently accessed data is cached in a local file instead of being kept in memory and reloaded when needed) 16) Accelerators on CPUs and other chips 17) optimize the complexity of the core algorithm 18) Power consumption: Network download, screen brightness, CPU operation (and memory consumption) 19) Merge necessary upload, download request 20) in the location, try to use the network (WiFi), followed by the base station location, and finally consider using GPS positioning 21) dynamically adjusts the screen brightness. Darker Themes Save power
03. Colleagues share notes on the course-"Android app low power design"