Android App Performance Optimization series concluding article

Source: Internet
Author: User

About the Android app optimization, from the beginning of the first plan, to the end of the series of memory optimization, unknowingly nearly three months of time, wrote 66 related blog post, is a systematic knowledge of their own, but also hope to give you some help.
Here is a summary of this.

Route
Android App Optimizer
1. How to optimize app performance
In the beginning of the series, we talked about a reason for this series, and then a plan, the series is basically going in this direction.
2, Performance analysis tools
Here are some of the most commonly-performed performance analysis tools, including official, third-party, memory-analysis, UI-analysis, execution-time performance analysis, and more.

With regard to the use of tools, there is an external article--adb use

3, App start speed optimization
The first truly hands-on optimization project, app startup speed optimization. In fact, there is a small series, in order to make the problem more clear, added a series of translations outside the--application of the start-up process analysis, and then the start speed optimization of the theoretical and practical challenges.
4, layout how to put
This paper introduces the tools of layout analysis, and illustrates its use by examples. Some suggestions about layout optimization are put forward.
5, ANR detailed
From the concept of ANR, the cause of the ANR, how to avoid the ANR of the several angles to "dissect" the under ANR. This paper provides a method for analyzing ANR, and analyzes the causes of the concentration of ANR and its solution.
6, eliminate the lag
Explains the causes of the lag, and introduces tool examples to analyze how to avoid stalling.
7, Memory optimized
This is a large subset, divided into five pieces to write, respectively, including:
7.1 Basics of garbage collection-gc that stuff.
The mechanism of GC is simply analyzed, so that we can have a theoretical basis for garbage collection, and have a concept for GC Roots, Living object, dead object and so on.
7.2 How Android Manages app memory
Based on the Android VM, it explains the memory limit of Android app, the memory management mechanism of app switch, process priority and so on.
7.3 Detailed Memory analysis tools
Describes the use of a series of memory analysis tools.
7.4 Take a memory leak code as an example to explain the process of memory problem analysis
Based on the memory analysis tool in the previous article, a memory leak instance code is analyzed to find out the cause of the memory leak. Such a process is, in fact, a practice for the previous theoretical basis, the use of tools.
7.5 Memory Usage Summary
As a summary of the memory-optimized series, there is an overview of common memory leak machine solutions, memory usage, and so on.

A description of the analysis and resolution of memory leaks is highlighted.

8, electricity is saved.
Power consumption optimization is a less attention to optimization, or tools to start, introduce the analysis of the use of electricity, and give a common power consumption of extreme optimization scheme.
9, efficient network requests
From the network traffic to the user's impact, introduced the application network analysis, all Aspects of network optimization scheme.

For the use of the network cache, reference is made to the network cache chapter of the MVP schema GitHub client.

Description
As the series begins, this series can be considered a performance-optimized note based on the actual online app. It's not app optimization, and even if it's a performance optimization, this series doesn't cover all of it.
App optimization is an ongoing effort that requires our continued attention.

In fact, attention to code quality is also an aspect of app optimization.

Conclusion
As usual, add a conclusion, it is a summary of their own, some things also want to share the encouragement of everyone.
First of all, for writing, the attitude is relatively serious, always think, after all, the external transmission of knowledge, content may be less, but do not want to be wrong. Hope not to bring everyone to the pit ~ haha.
Then, in fact, it has been emphasized that the grant of fishing. It is important to teach the method, so you can see that many of this series are in the process of explaining some of the tools used, combined with case analysis. Not just the performance optimization should be done Balabala, 123456 points.
Then again, there is no theory. The so-called know its why, introduced a few theoretical articles as cohesion, is to let everyone in the same theoretical basis to deepen the use of tools and analysis of the process of understanding.
Finally, the above points are actually nonsense, we praise the good.

Anly_jun
Links: https://juejin.im/post/581f4ad667f3560058a33057
Source: Denver Nuggets
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.

Android App Performance Optimization series concluding article

Related Article

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.