準(zhǔn)備好構(gòu)建性能超群的移動(dòng)應(yīng)用程序了嗎?如果您是一個(gè)具有應(yīng)用開(kāi)發(fā)經(jīng)驗(yàn)的 iOS 開(kāi)發(fā)人員,這本實(shí)用指南提供建議和最佳實(shí)踐幫助您解決許多常見(jiàn)的性能問(wèn)題。您將學(xué)到如何設(shè)計(jì)并優(yōu)化 iOS 應(yīng)用程序以提供流暢的體驗(yàn),甚至是在網(wǎng)絡(luò)信號(hào)很差和內(nèi)存有限的情況下。
高瑞夫·維希(Gaurav Vaish),在雅虎的移動(dòng)和新產(chǎn)品事業(yè)部工作,為數(shù)億用戶每月使用的移動(dòng)應(yīng)用創(chuàng)建優(yōu)化的可重用解決方案。此前他是IIT全球?qū)燀?xiàng)目的成員.還在印度班加羅爾成立了InColegLearning以及EdujiniLabsPvt.Ltd。
Preface
Part Ⅰ Getting Started
1. Performance in Mobile Apps
Defining Performance
Performance Metrics
Memory
Power Consumption
Initialization Time
Execution Speed
Responsiveness
Local Storage
Interoperability
Network Condition
Bandwidth
Data Refresh
Multiuser Support
Single Sign-on
Security
Crashes
App Profiling
Sampling
Instrumentation
Measurement
Project and Code Setup
Crash Reporting Setup
Instrumenting Your App
Logging
Summary
Part Ⅱ Core Optimizations
2. Memory Management
Memory Consumption
Stack Size
Heap Size
Memory Management Model
Autoreleasing Objects
Autorelease Pool Blocks
Automatic Reference Counting
Rules of ARC
Reference Types
Variable Qualifiers
Property Qualifiers
Getting Your Hands Dirty
Photo Model
Storyboard Update
Method Implementations
Output Analysis
Zombies
Rules of Memory Management
Retain Cycles
Rules to Avoid Retain Cycles
Common Scenarios for Retain Cycles
Observers
Returning Errors
Weak Type: id
Solution to the Problem
Object Longevity and Leaks
Singletons
Finding Mystery Retains
Best Practices
Memory Usage in Production
Summary
3. Energy
cpu
……
Part Ⅲ iOS Performance
Part Ⅳ Beyond code
Part Ⅴ iOS 9
Index