Discover ways to improve the performance and memory management of your Swift code. We’ll explore ways to refine your code – from making high-level algorithmic changes to adopting the new InlineArray and Span types for finer control over memory and allocations.
Explore related documentation, sample code, and more:
Performance and metrics: https://developer.apple.com/documenta...
The Swift website: https://www.swift.org
Swift Binary Parsing: https://github.com/apple/swift-binary...
The Swift Programming Language: https://docs.swift.org/swift-book/
What’s new in Swift: https://developer.apple.com/videos/pl...
Optimize CPU performance with Instruments: https://developer.apple.com/videos/pl...
Profile and optimize power usage in your app: https://developer.apple.com/videos/pl...
Explore Swift performance: https://developer.apple.com/videos/pl...
00:00 - Introduction & Agenda
01:19 - QOI format & parser app
02:25 - Algorithms
08:17 - Allocations
16:30 - Exclusivity
19:12 - Stack versus heap
21:08 - Reference counting
29:52 - Swift Binary Parsing library
31:03 - Next steps
More Apple Developer resources:
Video sessions: https://apple.co/VideoSessions
Documentation: https://apple.co/DeveloperDocs
Forums: https://apple.co/DeveloperForums
App: https://apple.co/DeveloperApp