准备好构建性能超群的移动应用程序了吗?如果您是一个具有应用开发经验的 iOS 开发人员,这本实用指南提供建议和最佳实践帮助您解决许多常见的性能问题。您将学到如何设计并优化 iOS 应用程序以提供流畅的体验,甚至是在网络信号很差和内存有限的情况下。
高瑞夫·维希(Gaurav Vaish),在雅虎的移动和新产品事业部工作,为数亿用户每月使用的移动应用创建优化的可重用解决方案。此前他是IIT全球导师项目的成员.还在印度班加罗尔成立了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