mirror of https://github.com/tinygo-org/tinygo.git
Browse Source
When I wrote the code originally, I didn't know about SetAlignment so I hacked a way around it by allocating [...]uintptr types. However, this allocates a few too many bytes in some cases. This commit changes this to only allocate the space that we actually need. The code size effect is mixed, but generally positive. The combined average is reduced by 0.27% with more programs being reduced in size than are increasing in size.pull/2198/head
Ayke van Laethem
3 years ago
committed by
Ron Evans
2 changed files with 33 additions and 16 deletions
Loading…
Reference in new issue