準備好構(gòu)建性能超群的移動應(yīng)用程序了嗎?如果您是一個具有應(yīng)用開發(fā)經(jīng)驗的 iOS 開發(fā)人員,這本實用指南提供建議和最佳實踐幫助您解決許多常見的性能問題。您將學(xué)到如何設(shè)計并優(yōu)化 iOS 應(yīng)用程序以提供流暢的體驗,甚至是在網(wǎng)絡(luò)信號很差和內(nèi)存有限的情況下。
高瑞夫·維希(Gaurav Vaish),在雅虎的移動和新產(chǎn)品事業(yè)部工作,為數(shù)億用戶每月使用的移動應(yīng)用創(chuàng)建優(yōu)化的可重用解決方案。此前他是IIT全球?qū)燀椖康某蓡T.還在印度班加羅爾成立了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