Skip to content

Progress bar rendering through indicatif is slow #10384

@konstin

Description

@konstin

Currently, the uv resolver thread spends a considerable amount of time in on_progress -> indicatif::style::ProgressStyle::format_state. We should limit rendering progress bar updates to at most 1/60s, ideally directly in indicatif.

Profile for samply record --rate 20000 target/profiling/uv pip compile scripts/requirements/airflow.in:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePotential performance improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions