Pro iOS apps performance optimization
Today's iPhone and iPad apps developers are often running into the need to refine, improve and optimize their apps performances. As more complex apps can be created, it is even more important for developers to deal with this critical issue. Pro iOS Apps Performance Tuning and Optimization cove...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
New York :
Apress
2011.
|
Edición: | 1st ed. 2011. |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628958606719 |
Tabla de Contenidos:
- Title Page; Copyright Page; Contents at a Glance; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; Preface; Chapter 1 Introduction to iO Performance Optimi ation; A New Era of Smartphone; Why Performance Matters; Who Should Use This Book?; My Teaching Style; 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 codeMemory 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 ExamplesReviewing 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 TechniquesDifferences 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 DirectoryPhoto 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