I've read about swift assertions from here and trying to find out more about optimizations.
for debug (default):
compiler performs no optimizations which in turn makes debugging your code and tracing it back to the original line of source code significantly easier.
for -O:
the compiler will strip symbols from your code (such as variable and function names) and perform optimization on your code to improve its performance
for -Ounchecked:
This is the optimization level you want if you’re going for the absolute best blazing performance you can. Although this level of optimization does improve performance, it only achieves this through the introduction of a certain level of risk. At this optimization level, the Swift compiler will skip many of the safety checks it would normally perform within the code in order to squeeze out the last ounce of performance
My questions are:
To make things faster for users...when I archive and release my app, do I need to go in a tweak anything? Or archives are defaulted to
-O?Which is the version that I should give for my users?
-Oor-Ounchecked?