Android App performance optimization notes: What is performance optimization and why?

Source: Internet
Author: User

By Long Luo

Zhou xingchi's movie kung fu tells a famous saying in the mouth of the evil gods of the Fire Cloud: "the martial arts of the world can only be broken ".

In the mobile Internet era, the window for a company is often only a short time. How to seize this opportunity and quickly develop products has become a crucial part. Compared with PC products in the traditional Internet era, users have lower tolerance for mobile products. However, a mobile app may be in close proximity to completion when it is launched. This requires rapid iterative development to update the product and continuously improve the product to retain users. At the same time, through the update product, some silent users can also be awakened, so that some users who originally downloaded the application but used a very small number of times to give the application another opportunity.

Therefore, rapid iteration has become an important survival rule in the mobile Internet era.

1. Why is performance optimization required?

As mentioned above, it is extremely important to develop products within the time window, but although we have implemented the basic functions, how is the efficiency of the developed product code running? What is the user experience provided by our App users?

  • Our apps often run ANR, crash, and choppy on low-end servers.
  • Why is our App so miserable in other resolutions?
  • How does our App handle different network conditions?
  • ...

    Our poor App experience leads to the loss of a large number of users. These forces us to realize that performance optimization is very important and, to some extent, exceeds the development of new functions.

    It also verifies a sentence: "We also have others, and they are better than others ."

    I have been developing Android for three years and have also developed many apps. When I first wrote an App, I only sought to quickly complete the required functions. Later, I became familiar with the relevant knowledge, looking back at the previously written code, we also know which improvements and optimization methods are available. Performance Optimization requires the improvement of its own capabilities. On the other hand, you also need to consciously learn optimization technologies and apply them to the development of your own projects.

    2. Performance Optimization Technology

    In addition to NDK, Android App development uses Java, while Java is a language running Based on Virtual Machine JVM. Therefore, compared with C/C ++, efficiency is relatively low. Java needs to occupy a large amount of memory in exchange for execution speed. The irregular GC mechanism directly causes choppy Android interfaces.

    Compared with Apple's iOS, Android has to deal with countless different hardware combinations, resolutions, drivers, and so on, leading to uneven App quality.

    Performance Optimization Technology, in short, is to improve the performance of our programs, so that our applications can be faster, less use of CPU resources, less use of memory.

    3. Performance Optimization note outline

    Performance optimization is a very big topic. At present, I want to write 8 notes to record it. The outline is as follows:

    1. How to Write Excellent code?
      2. program Performance Test 3. app memory optimization 4. image Cache Technology (ImageCache and Image SD card Cache Technology) 5. database optimization 6. network Optimization 7. app UI optimization 8. performance Tuning Tool

      Personal Homepage blog Link: Http://www.imlongluo.com/blog? P = 279
      Long Luo Version0.1 Created at PM14: 10 then l 12th, 2014 @ Shenzhen, China. Long Luo Version0.1 Completed at PM15: 25 then l 12th, 2014 @ Shenzhen, China.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.