IMPORTANT
I made this post due to wrong assumptions about
-o:noneflag. It may help to slightly improve performance for very less powerful computers like mine. But using a faster linker improves the compilation speed significantly more than the-o:noneflag.For more comprehensive information for faster compilation, see this article:
Odin compilation speed tips
If you are using a less powerful computer like mine, then set -o flag to none for the commands build, run, test, etc.
odin run main -o:none
The default value for -o flag is -o:minimal, which is slower than -o:none.
Using
-o:nonewithodin testcommand may make tests take longer to complete, especially if you have many tests.
From Odin manual odin build --help you can see the following:
-o:<string>
Sets the optimization mode for compilation.
Available options:
-o:none
-o:minimal
-o:size
-o:speed
-o:aggressive (use this with caution)
The default is -o:minimal.