Small summary, follow-up continue.
1. Several development details to improve application performance
* Try to avoid using constraint for animation
* Try to avoid using the array delete operation
* Try to avoid using Nsstring::stringwithformat
* Try to avoid using Nsimage::imagewithcontentoffile
* Threads require 1KB of kernel space and a minimum of 16KB of stack space
* All possible time-consuming operations, do not put in the main thread
* Timely removal of garbage (MRC, ARC) like some C functions, variables and other code blocks
2. Picture loading operation--one of the important factors that affect mobile application performance
|
Imagecacheresize |
Egoimageloading |
Afnetworking |
Hjcahce |
Sdwebimage |
| Advantages |
Sdwebimage+uiimage+resize |
Custom Egoimageview |
Asynchronously loaded, cached to memory |
Asynchronous load, level two cache |
Second-level cache, download optimization, GCD, support for arc, support for ARM64 |
| Disadvantages |
No longer maintained |
Arc not supported, no longer maintained |
The picture cannot be cached locally, dependent on Nscache |
Complex interface, no longer maintenance |
Resource consumption |
3. The main culprit of mobile app performance-10
* Connection Timeout
* Network Hijacking
* Flash Back
* Poor interactive performance
* Lag
* CPU Usage frequency problem
* Crash
* Memory leaks
* Monochrome Screen
* Bad interface
iOS performance Optimization technology