Skip to content

(performance): speed up conflict checking by caching canonical names and tightening whitelist construction #14087

Description

@KRRT7

pip install and pip check spend measurable time in dependency conflict detection. Two low-risk improvements stand out:

  • Cache canonicalized dependency names when building package details so later conflict checks can reuse them.
  • Make whitelist construction in install conflict checking order-independent while keeping the existing scope limited to the target packages and their direct dependents.\n\nThis should reduce overhead in a common path without broadening conflict detection behavior.

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