One of the performance tuning notes for Android apps: What is performance optimization and why?

Source: Internet
Author: User

by Long Luo

Stephen Chow's film "Kung Fu" inside asks cloud evil god mouth uttered a word of wisdom: "The world martial arts, only fast not broken."

In the era of mobile internet, the same is true, leaving a company's window often only a short time, how to seize the opportunity to quickly develop products, become a vital link. Compared with the traditional internet era of PC products, users of mobile products are less tolerant. While a mobile app may be nearing completion when it's launched, it needs to be updated with rapid iterative development, constantly improving the product to retain the user. At the same time, by updating the product can also wake up some silent users, so that some people have downloaded the application but the use of a very small number of users to the application one more opportunity.

So fast iteration becomes an important survival rule in the era of mobile internet.

1. Why do I need performance optimization?

As mentioned above, it is extremely important to develop the product in the time window period, but although the basic function is realized, what is the efficiency of the developed product code? How do our app users experience the user?

    • Our apps are often anr, flashback, and lag on low-end machines.
    • Does our app show a horrible display at other resolutions?
    • How our app is handled in different network situations
    • ...

Our app experience is so bad that it leads to a lot of user churn. These forces us to realize that performance optimization is very important to some extent even beyond the development of new features.

Also verified a sentence: "Others have we have, but also better than their own faster." ”

Android has been developed for more than 3 years, during the development of many apps, the first time to write apps, only the pursuit of rapid completion of the required functions, and then with the knowledge of the relevant, and then look back to write the code, but also know what improvements and optimization means. Performance optimization, on the one hand need to improve their own ability, on the other hand, also need to have the awareness of learning optimization technology, and applied to the development of their own projects.

2. Performance Optimization Technology

Our Android app is developed with the Java language in addition to the NDK, and the Java language is a language that runs on a virtual machine JVM, so it is less efficient than the C + + language. Java requires a lot of memory in exchange for execution speed, and the occasional GC mechanism directly causes the Android interface to stutter.

Compared to Apple's ios,android to face a myriad of different hardware combinations, resolutions, drivers, etc., resulting in uneven app quality.

Performance optimization techniques, in short, are improving the performance of our programs, making our applications faster, using less CPU resources, and using less memory.

3. Performance Tuning Notes outline

Performance optimization is a very large topic, here is now ready to write 8 notes to record, the outline is as follows:

1. How to write good code?

      1. 2. Program Performance test
      2. 3. App Memory optimization
      3. 4. Image caching Technology (Imagecache and image SD card caching technology)
      4. 5. Database optimization
      5. 6. Network optimization
      6. 7. APP UI Optimization
      7. 8. Performance Tuning Tools

http://blog.csdn.net/tcpipstack/article/details/23535103

One of the performance tuning notes for Android apps: What is performance optimization and why?

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.