swift-performance - Optimize Swift runtime and memory performance
Optimize Swift code using value semantics, ARC behavior, generic specialization, copy-on-write, collections, concurrency, and memory layout.
Tags
Updated: 2026-12-03Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Optimize Swift code
- Reduce implicit copies
- Tune copy-on-write behavior
- Optimize ARC overhead
- Specialize generic code
- Improve collection performance
- Optimize concurrency overhead
- Analyze memory layout
Inputs
- Swift source code
- Profiler findings
- Performance requirements
- Target data structures
Outputs
- Performance recommendations
- Optimized Swift code
- Code review findings
- Memory and runtime improvements
Requirements
- Swift 6.2 or later
- Xcode 16 or later
- iOS 18 or later or macOS 15 or later
- Instruments profiling before optimization
