Skip to content

[wasm-split] Slow splitting many modules #7722

Closed

Description

@biggs0125

For a large file, wasm-split with --multi-split takes 3.5+ minutes to separate the file into ~350 submodules.

My understanding is that --multi-split basically invokes split mode iteratively. I imagine it would be faster if it processed the entire main module at once [O(n)] rather than walking the entire (albeit slowly shrinking) main module many times [O(n^2)].

Activity

  1. tlively commented on Jul 15, 2025

    @tlively
    Member
  2. aheejin commented on Dec 12, 2025

    @aheejin
    Member

    #7956 reduced the splitting time of a Dart test case that splits a module into 350 submodules by around 66%.

  3. aheejin commented on Jan 28, 2026

    @aheejin
    Member

    Running time improvements:
    After #7956: ~80s
    After #8221: ~16s

  4. aheejin commented on Mar 5, 2026

    @aheejin
    Member

    I think we can close this at this point probably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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