Per-function optimization?

Hello! is it possible somehow to switch compiler optimization for particular function?

Only a few things can be switched at such granularity, like runtime safety, floating point mode and the hotness / coldness of a certain part of the code. These can be switched with the corresponding builtins.
If you need more granularity than this, you can move your functions to another module. Each module can have its own settings, including optimization level.

3 Likes