4 ms·
The generated binary for simple Hello World is 3.45 MB which is quite a lot for printing one line of text but it can be compressed to 326K using UPX.
by lukax 10y ago
The generated binary for simple Hello World is 3.45 MB which is quite a lot for printing one line of text but it can be compressed to 326K using UPX.
- densh 10y agoAll of our binary size problems are mostly caused by a single well-known issue [1]. We hope to address that in one of the future releases. In the meanwhile, compressing binaries with upx is a temporary solution that can alleviate some of the pain. [1] https://github.com/scala-native/scala-native/issues/180 https://github.com/scala-native/scala-native/issues/180
- cderwin 10y agoRust's is almost the exact same size (3.46 MB). It's probably just that the libraries that are statically linked by default (jemalloc, std, etc.).
- densh 10y agoThat's correct. We statically link all of the transitive Scala dependencies.