Skip to content

Crate graph resolution on parity-wasm with a lockfile is noticeably slow #5817

Closed
@alexcrichton

Description

@alexcrichton

Following alexcrichton/cargo-vendor#89 I cloned the parity-ethereum repository and ran cargo build, but on subsequent tries, much to my surprise, it took a noticeably long time for Cargo to start printing "Compiling ..."!

This typically means that Cargo is spending too long in crate graph resolution, although it could be other things! Very unscientific testing shows ~.8s before "Compiling..." shows up on nightly. Interestingly CARGO_PROFILE=1 only shows ~100ms ms (!!) in resolution.

We may be able to do much better in this regard! cc @Eh2406, would you be curious to dig into this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions