forked from apple/swift
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WASM files are quite large? #5559
Comments
Unfortunately it's a typical size of wasm binary produced from Swift today. There are several known inefficiencies in the toolchain due and we are hardly working on improving it. You might be able to find some useful resources in #7 |
The upcoming Embedded Swift features will allow much of the overhead (reflection, unused code, etc.) to be stripped out of WASM builds, but that is still in early development. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Long-time Swift dev here, dipping into this WASM project for the first time. This Swift file prints "Hello, WASM":
The file generated is 6MB+:
$ ls -al main.wasm $ 6.35M 03.Nov'23 13:50 main.wasm
Questions
The text was updated successfully, but these errors were encountered: