mirror of https://github.com/tinygo-org/tinygo.git
Browse Source
The errors package has a call like this in the package initializer. This commit adds support for running it at compile time, avoiding the call at runtime. This doesn't always help (the call is already optimized away in many small programs) but it does help to shave off some binary size in larger programs. Perhaps more importantly, it will avoid a penalty in code size when the reflect package will convert reflect.Type from a regular type to an interface type.pull/1736/head
Ayke van Laethem
4 years ago
committed by
Ron Evans
1 changed files with 33 additions and 4 deletions
Loading…
Reference in new issue