I am trying to migrate a project from Scala 2.13 to Scala 3. It is going well and tests are already passing.
In this project I have two builds:
devis without inlining because inlining breaks incremental building.
prodis with inlining because inlining yields a 5% performance gain.
Now I wonder how to migrate inlining. It seems that I have to replace all
@inline annotations with just
inline. But how to control inlining? As the Scala 3 compiler ignores the options
-opt-inline-from, I see no way to disable inlining and to define from which modules to inline. (I think that the advice given by Scala Inliner and Optimizer | Lightbend regarding binary compatibility issues is still valid.)