Local OptimisationsEdit this page on GitHub
The Dotty compiler implements several local optimisations to generate faster bytecode. These optimisations can be enabled by compiling with the
-optimise flag. The current best source of documentation about what tree transformations are performed under
-optimise is the Scaladoc classes in the localopt package.
Local optimisations assumes no use of Java Reflection to mutate final fields.