Tagged articles

Protocol Oriented

1 articles · Page 1 of 1
Meituan Technology Team
Meituan Technology Team
Nov 1, 2018 · Mobile Development

Understanding Swift Performance: Allocation, Reference Counting, and Dispatch

Swift performance hinges on allocation choices, ARC overhead, and method dispatch, so using stack‑allocated structs instead of heap‑allocated classes, applying final or private to force static dispatch, leveraging protocol‑oriented containers, specializing generics, and enabling whole‑module optimization together yield faster, more efficient iOS code.

DispatchMemory ManagementProtocol Oriented
0 likes · 26 min read
Understanding Swift Performance: Allocation, Reference Counting, and Dispatch