Danger. Don’t Destroy Swift’s Performance with These mistakes
Perform well…
5 min readApr 7, 2023
You can write functions and statements that don’t add any value to your code (at least as far as the Swift compiler is concerned). Since Swift can’t simply skip these functions you might see your performance dropping off.
Let us prevent this, let us put mitigations in place now. How? Speed is important so let’s read on and learn a few quick tips in Swift.
Difficulty: Beginner | Easy | Normal | Challenging
Prerequisites:
- Some understanding of Logging in Swift would be useful (guide HERE)
Terminology
Build: A build is a version of an App
Build Configuration: The configuration for an Xcode build
Debug: identify and remove errors
Logging: A way to capture log messages to memory and disk