Dotty Documentation

0.3.0-bin-SNAPSHOT

Local Optimisations

Edit 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.