IOS APP Performance Tuning Summary

Source: Internet
Author: User

Today briefly summarizes some of the ClientApp optimization scenarios and directions.

I believe that the development of an app most of the team will be able to complete, but the performance is not the same, and we all write a bubble algorithm, I believe that each person writes the bubble algorithm is different, these differences bring performance difference.

So a good app doesn't just look at the design. and creativity, but also to see performance.

I'll briefly say a few points of performance optimization:

First, home start speed

The less things you do during startup, the better (merge multiple interfaces as possible)

Do not take time-consuming actions on the UI thread (processing of data is performed on a child thread, and the main thread of the notification is flushed with the program)

Start a background task at the right time (for example, the user directs the program to start preparing the loaded data)

Minimize the size of the package

Optimization method:

Quantify startup time

Modular Start-up speed

Auxiliary Tools (Friends League, listen to the cloud, Flurry)


Second, page browsing speed

The processing of JSON (IOS comes with nsjsonserialization. Jsonkit. Sbjson)

Pagination of data (back-end data is more, it will be paged back, such as NetEase news, or micro-blog Records)

Data compression (Big data can also be compressed back.) Reduce flow rate and speed of reaction)

Content caching (such as the latest news list for NetEase news is cached locally, loaded locally, cached to memory, or database, depending on the situation)

Time-lapse load tab (for example, the app has 5 tabs.) You can load the first tab that you want to display, and then load the other one at display time. Load on Demand)

Algorithm optimization (core algorithm optimization, such as some apps have a contact name in alphabetical order)


Third, the Operation smoothness optimization:

Tableview optimization (Tableview cell onboarding optimization)

Viewcontroller load optimization (jumps between different view. Be able to prepare the data in advance.)


Iv. optimization of the database:

Refactoring of database design above

Optimization of query statements

Sub-database sub-table (when data too much, can be divided into different tables or libraries)


Five, server side and client interaction optimization:

Client tries to reduce requests

Logical processing of the service side as long as possible

Server-side and client-driven push-pull combination (can take advantage of some synchronization mechanisms)

Optimization of communication protocols. (Reduce the size of the message)

Power usage optimization (try not to use background execution)


Vi. Non-technical performance optimization

The logic of product design (product design must be logical, or logic as simple as possible. Otherwise it will make the program ape crazy, sometimes with a great effort, talent enough to complete a small logical design problem)

Specification of interface interaction (the interface of each module is as uniform as possible, consistent with the operating habits)

Code specification (this can be invisible to improve the performance of the app, for example, if else or switch, or use!)

or = =)

Code review (insists on coding review to continue refactoring. Reduce the logical complexity of your code)

Daily communication (often share some code.) Or a pit in a logical process)


IOS APP Performance Tuning Summary

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.