Other iOS performance and iOS Performance

Source: Internet
Author: User

Other iOS performance and iOS Performance

This article is a reference, because I have only studied these technologies, but they are not used in the project, nor have they been studied in depth, so they can only be used as one note.

Network request

Currently, most network requests are in json format (I believe no APP can use XML format again). The json format is small and lightweight. In the early years, it was the best choice, but now we have a lighter solution, Protobuf, which is also produced by google (must be excellent). It is a binary format, which is smaller than json (about 20% smaller ).

To put it simply, the process is: Write a proto file locally (any editor is acceptable), such:

Message Person {required string name = 1; // name required int32 sex = 2; // gender required int32 age = 3; // age}

Then use the command line

protoc --objc_out=./ ./test.proto

Generate. h and. m Files

In this way, once the server returns a request in protobuf format, the client can directly use it. Refer to the article:

Http://www.tanhao.me/code/150911.html/

IOS startup Speed Optimization

References:

  • Toutiao iOS client startup Speed Optimization
  • WWDC 2016 Session notes: optimized App startup time
  • Baidu input method-iOS startup Speed Optimization
  • How to optimize startup time of Facebook iOS App
  • Obj China-Mach-O Executable File
IOS Package Size Reduction

References:

  • IOS installation package slimming
  • Optimization of toutiao IPA installation package
  • IOS slimming-removing useless mach-O files in the FrameWork
  • Clang Plugin-based iOS package size slimming Solution
  • IOS Executable File slimming Method

If you have any other thoughts or experiences on iOS performance optimization, please leave a message and let me know. Thank you.

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.