Skip to content

pub get became very slow #4818

@huanghui1998hhh

Description

@huanghui1998hhh

Here's the flutter pub get -v output.

pub_get.log

Observed timings

  • Total: ~408.79s
  • Version solving: ~2.01s
  • Root project phase before first Got dependencies!: ~380.01s
  • Metadata HTTP requests count: 364
  • Sum of HTTP request durations: ~370.37s
  • Median request latency: ~0.91s
  • p95: ~1.40s
  • p99: ~3.16s

Expected behavior

dart pub get should complete significantly faster for already-cached packages / lockfile-stable graphs, and should not require so much wall-clock time in metadata lookups.

Environment

  • Dart (from Flutter SDK): Pub 3.11.5 (from verbose log)
  • OS: macOS (arm64)
  • Command path: flutter pub get --example -> dart pub get -v

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions