Skip to content

Builds of 0.21 are much slower, wasm builds cause massive memory use in rustc #255

@adrian17

Description

@adrian17

This was probably caused by https://github.com/tafia/quick-xml/pull/239/files#diff-0acc5298e8580ddde57f322c2f6b70406f8d2b13acd0bebc4125428a66afc585 .

Reproduction:

git clone https://github.com/tafia/quick-xml.git
cd quick-xml
git checkout 1961d8e
cargo build --release

Builds in 40s (2s before this commit)

cargo build --release --target=wasm32-unknown-unknown

After 1-2 minutes rustc's memory use starts increasing to 4+ GB, causing my machine to start swapping. (builds in 2s before this commit)

You can also see the effect on GH Actions workers - a PR that bumped quick-xml dependency seems to have significantly increased build times (by 6-7min) on some configurations.

Compare:
https://github.com/ruffle-rs/ruffle/runs/1825148297
https://github.com/ruffle-rs/ruffle/runs/1825150290

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions