File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Enabling Optimizations
21
21
======================
22
22
23
23
The first thing one should always do is to enable optimization. Swift provides
24
- three different optimization levels:
24
+ four different optimization levels:
25
25
26
26
- ``-Onone ``: This is meant for normal development. It performs minimal
27
27
optimizations and preserves all debug info.
@@ -35,6 +35,8 @@ three different optimization levels:
35
35
result in undetected memory safety issues and integer overflows. Only use this
36
36
if you have carefully reviewed that your code is safe with respect to integer
37
37
overflow and type casts.
38
+ - ``-Osize ``: This is a special optimization mode where the compiler prioritizes
39
+ code size over performance.
38
40
39
41
In the Xcode UI, one can modify the current optimization level as follows:
40
42
You can’t perform that action at this time.
0 commit comments