Swift (iOS/macOS) Application Performance
300 pages
English
PDF
4.5

Swift (iOS/macOS) Application Performance

Swift (iOS/macOS) Application Performance

Author:

Year:

Summary:

The book "Swift (iOS/macOS) Application Performance" is a practical guide for developers who want to create fast, responsive, and energy-efficient applications for the Apple ecosystem. The author, Alexey Voronov, an engineer with 10 years of experience developing native applications, shares proven techniques for optimizing code, memory management, graphics, and multithreading.



What this book is about

The book covers the full performance workflow — from diagnosing bottlenecks to the final build. You will learn:

  • Profile applications using Xcode Instruments: Time Profiler, Allocations, Leaks, Energy Log, Metal System Trace.
  • Optimize memory: avoid leaks, manage ARC, work with COW (copy-on-write) and data buffering.
  • Accelerate UI: reduce load on Core Animation, use asynchronous rendering, fight lag in UITableView and UICollectionView.
  • Work with multithreading: efficiently use GCD, OperationQueue, and async/await, avoid race conditions and deadlocks.
  • Optimize graphics and GPU: configure Metal and SpriteKit, reduce draw calls, work with textures and shaders.
  • Reduce energy consumption: analyze the impact of background tasks, network requests, and sensors on battery life.


Who this book is for

The book will be useful for:

  • Junior+ and Middle iOS/macOS developers looking to deepen their knowledge of performance;
  • Team Leads and technical architects who want to foster a culture of performance engineering in their team;
  • Students and beginners learning Swift who want to write efficient code from the start.


What you will learn

After reading, you will be able to:

  • Find and fix 90% of performance issues during the development stage;
  • Write code that runs 2–5 times faster without losing readability;
  • Properly configure the build and linter for automatic performance control;
  • Prepare applications for publication on the App Store with a guarantee of smooth operation on older devices.


The book contains over 50 real code examples, Xcode screenshots, and checklists for self-audit. All examples are compatible with Swift 5.9+ and the current versions of iOS 17 and macOS 14.



Ideal for those who want their applications to fly, not lag.

Recommendations