Preface 1
Chapter 1: Performance, Bottlenecks, and Fundamentals 7
Success and performance 7
Perception of performance 9
Performance fundamentals 11
Approaching performance 12
Process management 14
Memory 17
Storage 20
Network 23
User interface 25
Be a good neighbor 27
Application design and architecture 28
Application performance 30
Summary 32
Chapter 2: Design for Performance 35
Preparing the project 36
Project organization 38
Project structure 39
Groups and files 42
Code structure 47
Summary 52
Chapter 3: Maintainability 53
Variable naming conventions 54
Method naming conventions 56
Camel case 57
Syntax efficiency 60
Readability versus compactness 61
Dot syntax 63
Re-factoring 64
Library bloat 66
LIPO 67
Comments 68
Documentation 71
Summary 74
Chapter 4: Reliability 75
Exception handling 76
Error checking 79
Unit testing 79
Preparing a project for logic unit testing 81
Preparing a project for application unit testing 87
Summary 95
Chapter 5: Performance Measurement and Benchmarking 97
Static analyzer 99
Instruments 101
Summary 106
Chapter 6: Syntax and Process Performance 107
Iteration loops 108
Object reuse 110
Bitmasks 111
Sorting 113
Bubble sort 114
Selection sort 116
Bucket sort 118
Quicksort 119
Run loops 122
Timers 123
Semaphores 125
Summary 126
Chapter 7: Network Performance 127
Sockets 129
Streams 132
Protocols 138
Bandwidth 140
Compression 143
Façade pattern 144
Summary 146
Chapter 8: Memory Performance 149
Garbage collection 150
Alloc 154
Dealloc 154
Copy 154
Retain 155
Release 155
Autorelease 160
didReceiveMemoryWarning 162
Summary 163
Chapter 9: Application and Object Lifecycles 165
Mise en place 167
Application lifecycle 170
Application startup sequence 172
Application execution 173
Application termination sequence 173
Application init 175
awakeFromNib 178
application: didFinishLaunchingWithOptions 178
applicationDidBecomeActive 179
applicationWillEnterForeground 179
applicationWillResignActive 180
applicationDidEnterBackground 180
applicationWillTerminate 181
Object lifecycle 182
Object init 182
Summary 184
Chapter 10: Animation, View, and Display Performance 187
View performance 188
Animated content 190
Core Animation 192
Item renderers 193
Summary 197
Chapter 11: Database and Storage Performance 199
Disk 201
Cache 202
Compression 204
SQLite 205
Core Data 206
Summary 206
Chapter 12: Common Cocoa Design Patterns 209
Why design patterns are critical 212
Singleton 212
Mediator 213
Delegate 214
Adaptor 214
Decorator 215
Model-View-Controller 216
Summary 218
Chapter 13: The Xcode Advantage 219
Distributed builds 222
Dead code stripping 223
Compiler 224
Debugger 224
Source code management 225
Summary 229
Index 231
· · · · · · (
收起)
0 有用 逆飞的鱼 2012-02-06 16:41:35
随便翻了一下,没什么干货
0 有用 飘飘白云 2013-04-07 10:55:17
3分钟就可以翻完的泛泛而谈的垃圾书,作者的口水真是多,一点屁大的事情也能洋洋洒洒写上好几页。
0 有用 飘飘白云 2013-04-07 10:55:17
3分钟就可以翻完的泛泛而谈的垃圾书,作者的口水真是多,一点屁大的事情也能洋洋洒洒写上好几页。
0 有用 逆飞的鱼 2012-02-06 16:41:35
随便翻了一下,没什么干货