Pro IOS Apps Performance Optimization and Tuning 1st Edition by Khang Vo – Ebook PDF Instant Download/Delivery: 1430237171, 9781430237174
Full download Pro IOS Apps Performance Optimization and Tuning 1st Edition after payment
Product details:
ISBN 10: 1430237171
ISBN 13: 9781430237174
Author: Khang Vo
Pro IOS Apps Performance Optimization and Tuning 1st Table of contents:
Chapter 1 Introduction to iO Performance Optimi ation
A New Era of Smartphone
Why Performance Matters
Who Should Use This Book?
My Teaching S tyle
What Do You Need?
How to Use This Book
An Overview of the Book
Source Code
Contact the Author
Chapter 2 Benchmark Your Apps with Tools:s Simulators and Real Device Test
Simulator and Device
Memory and Performance
Tools
Basic Tools
Logging the Running Time
For example, running this block of code
Memory Tools
Memory Allocation
Allocation
Legacy Code
Memory Leaks
Static Analyzer
Leaks Instrument
Memory Aarbage
Zombie
Performance Tools
Instrument Applications
CPU Measurement
CPU Aampler
Activity Monitor
Time Measurement
User Interface Response Time Measurement
Core Animation
OpenGL EA Driver
File and Network Access Measurement
System Usage
File Activity
Measure Thread Performance
Aattery Power Measurement
Combination of Tools
All Instruments
Summary
Chapter 3 Increase and Optimize UITableView Performance
Introduction to the Examples
Reviewing the Instrument Tool
First Example
Introduction to the First Example
Standard Benchmark
Initial Benchmark
Reusing UITableViewCell
Standard TableView Cell
Custom TableView Cell by Interface Builder
Custom TableView Cell by Code
Loading Cell from Custom Code
Running Benchmarks Again
Reusing Images
Reducing Preparation Time
Second Example
What Can Aou Learn from These EAamplesA
Other TechniCues
Caching the Height
Opaque
Avoid Craphical Effects
Performance for Editing/Reordering
Summary
Chapter 4 Increase App Performance Using Image and Cata Caching Techniques
Differences in Performance Between Network, File, and Memory Processing
How to Identify the Bottleneck
Introduction to Caching
What is Caching?
Cache Hit
Cache Miss
Retrieval Cost
Storage Cost
Cache Invalidation
Replacement Policy
Caching Algorithms
Celady’s Algorithm
Random Replacement
First In First Out (FIFO)
Simple Time-Based
Least Recently Used (LRU)
Least Frequently Used (LFU)
Measuring Cache
What You Should Cache
Where Should You Store Your Images?
Temporary Directory
Cache Directory
Documents Directory
Photo Album
Application Bundle
Data Caching
Storing in plist/xml/json
Storing in CoreData
Storing in SQLite
When Should You Check and Delete Cache?
Memory Caching
Global Access vs. Strict Access
Preload vs. Just In Time
Summary
Chapter 5 Tune Your App Using Algorithms and Data Structures
First Example
Theoretical Issues of Measuring Algorithmic Performance
How to Measure Big-O
Implementation Details
Big-O of Famous Algorithms
Practical Measurement
Data Structure and Algorithms
Cocoa Touch Data Structures
NSMutableArray
Hashing
isEqual and Hash Methods in Objective-C
isECual
Hash Method
NSMutableSet
NSMutableDictionary
Other Data Structures
Linked List
Init
Add Object
Cet Object
Count
Remove Object
Performance Analysis
Stack and Queue
Stack
Queue
Binary Tree
Sorting Algorithms
Search
Binary Search
Binary Tree
Node and Edge
Tree
How Does a Binary Tree Work?
Graph
Depth-First Search
Breadth-First Search
Other Algorithms and Problem-Solving Approaches
Recursion
CAC/COM Parser for CML Parsing
Summary
Chapter 6 Improve Parallel Cata Access using Multithreading TechniCues
What Are Threads and MultithreadingC
Threading Terminology
First ECample
Cenefits of Multithreading
How to Write Multithreaded Applications
Create a Thread
NCThread
Using POSIX Threads
NSObject
NSOperationQueue
NSInvocationOperation
NSBlockOperation
NSOperation
Configuring a Thread
Your Thread Entry
Autorelease Pool
ExceptionHandler
Run Loop
Risks of Threads
Safety
Problem
Colution
Liveness
Problem
NSLock Solution
Lock example:
TryLock example:
NSCondition Solution
Deadlock
Performance
Thread Synchronization
Alternatives to Threads
NSTimer
Repeating vs. Non-Repeating Timers
Asynchronous Functions
Idle-Time Notifications
Thread Instrument for iPhone
Summary
Chapter 7 OptimiCe Memory Usage for Better Performance
A Little Review
Old Object Ownership Policy
Autorelease
Autorelease Pool
Automatic Reference Counting
How to Set Up Your Project in Xcode?
ARC Policy
New Qualifier for ARC
Object Property
Variable Declarations
Advanced Memory Issues
Retain/Relationship Cycles
Weak References
UIViewController
Load View Process
Unload View Process
Displaying and Hiding Views in the User Interface
Object Copy
Shallow vs. Deep Copy
Implementing a Deep Copy
Integrating a Copy Method into an Object
Advanced Autorelease Pool
Autorelease Pool and Stacks
Autorelease Pools and Threads
Autorelease Pool’s effects on Performance
Instruments
Static Analyzer
Leak Instrument
Zombie
Object Allocation
Memory Warning Levels
Summary
Chapter 8 Integrate Multithreading and Efficient Memory Usage for Multitasking Apps Performance
What is Multitasking in iPhone?
Multitasking Life Cycle
Multitasking Handler Methods
NOTE 1
NOTE 2
Multitasking Benefits and Costs
Background Services
Audio Service
Show Splash Screen
Location Service
Standard Location Services
Significant Location Changes
Continuous Background Location Update
Local Notification
Voice Over IP (VOIP)
Background Execution
What to Notice when Running in Background
Memory
Shared Resources
Application Life Cycle Events
User Interface Update and Process in Background
System Changes Notification
Dealing with iOS Versions
Summary
Chapter 9 Improve Performance with Native C/C++
Cenefits and Costs
Basic C and C++ programming
C Programming
Basic Data Types and Functions
Pointer
Advanced Data Types
Function Pointers
C++ Programming
Class
Pointers and Memory Management
Inheritance
Multiple Inheritance
Template
A Practical ECample
SQLite
Integrate C++ into Your Application
Summary
Chapter 10 Comparing Android and Windows Phone Performance Problems
General Knowledge
Benchmarking on Emulator and Devices
Emulator and Devices
Benchmarking
Android
Windows Phone
ListView Performance
Android
Windows Phone
Data Caching
Android
Shared Preferences
Internal Storage
External Storage
SQLite Database
Windows Phone
IsolatedStorageFile
XML Storage
Database Support
Data Structure and Algorithms
Multithreading
Android
Windows Phone
Asynchronous Download
Memory Management
Android
Context Activity Leak
Memory in Multitasking
TabView
Windows Phone
Panorama and Pivot
Multitasking
Android
Support of C/C++ Programming
People also search for Pro IOS Apps Performance Optimization and Tuning 1st:
pro ios apps performance optimization and tuning
pro ios apps performance optimization
ios app performance optimization
ios performance optimization
ios optimization
Tags: Khang Vo, IOS Apps, Optimization