iOS and macOS Performance Tuning: Cocoa, Cocoa Touch, Objective-C, and Swift (Paperback)

Marcel Weiher

買這商品的人也買了...

商品描述

In iOS and macOS™ Performance Tuning, Marcel Weiher drills down to the code level to help you systematically optimize CPU, memory, I/O, graphics, and program responsiveness in any Objective-C, Cocoa, or CocoaTouch program.

 

This up-to-date guide focuses entirely on performance optimization for macOS and iOS. Drawing on more than 25 years of experience optimizing Apple device software, Weiher identifies concrete performance problems that can be discovered empirically via measurement. Then, based on a deep understanding of fundamental principles, he presents specific techniques for solving them.

 

Weiher presents insights you won’t find anywhere else, most of them applying to both macOS and iOS development. Throughout, he reveals common pitfalls and misconceptions about Apple device performance, explains the realities, and helps you reflect those realities in code that performs beautifully.

  • Understand optimization principles, measurement, tools, pitfalls, and techniques
  • Recognize when to carefully optimize, and when it isn’t worth your time
  • Balance performance and encapsulation to create efficient object representations, communication, data access, and computation
  • Avoid mistakes that slow down Objective-C programs and hinder later optimization
  • Fix leaks and other problems with memory and resource management
  • Address I/O issues associated with drives, networking, serialization, and SQLite
  • Code graphics and UIs that don’t overwhelm limited iOS device resources
  • Learn what all developers need to know about Swift performance

This book’s source code can be downloaded at github.com/mpw/iOS-macOS-performance.

 

Register your product at informit.com/register for convenient access to downloads, updates, and corrections as they become available.

商品描述(中文翻譯)

在《iOS和macOS性能調優》一書中,Marcel Weiher深入探討代碼層面,幫助您系統地優化任何Objective-C、Cocoa或CocoaTouch程序中的CPU、內存、I/O、圖形和程序響應。

這本最新的指南完全專注於macOS和iOS的性能優化。基於超過25年優化蘋果設備軟件的經驗,Weiher確定了可以通過測量實證發現的具體性能問題。然後,基於對基本原理的深入理解,他提出了解決這些問題的具體技術。

Weiher提供了其他地方找不到的見解,其中大部分適用於macOS和iOS開發。在整個過程中,他揭示了關於蘋果設備性能的常見陷阱和誤解,解釋了現實情況,並幫助您在代碼中體現這些現實,使其運行得出色。


  • 了解優化原則、測量、工具、陷阱和技術

  • 識別何時需要仔細優化,何時不值得花時間

  • 平衡性能和封裝,創建高效的對象表示、通信、數據訪問和計算

  • 避免減慢Objective-C程序並阻礙後續優化的錯誤

  • 修復內存和資源管理中的泄漏和其他問題

  • 解決與驅動器、網絡、序列化和SQLite相關的I/O問題

  • 編寫不會過度消耗有限iOS設備資源的圖形和UI

  • 了解所有開發人員對Swift性能需要了解的內容

這本書的源代碼可以在github.com/mpw/iOS-macOS-performance上下載。

請在informit.com/register上註冊您的產品,以便方便地獲取下載、更新和更正信息。