Skip to content

WASM files are quite large? #5559

@KevinVitale

Description

@KevinVitale

Description

Long-time Swift dev here, dipping into this WASM project for the first time. This Swift file prints "Hello, WASM":

> main.swift:
print("Hello, WASM!")

The file generated is 6MB+:

$ ls -al main.wasm
$ 6.35M 03.Nov'23 13:50  main.wasm

Questions

  • Is this typical of WASM files? Or something more specific to the details of this project?
  • How can I reduce the file size? An ancillary task I'm working on limits WASM files to 128k.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions