iOS Performance Optimization technology

Source: Internet
Author: User

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

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.