Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate usage of --use-feature=fast-deps in pip install --report #1182

Open
cobya opened this issue Jun 18, 2024 · 1 comment
Open

Investigate usage of --use-feature=fast-deps in pip install --report #1182

cobya opened this issue Jun 18, 2024 · 1 comment
Labels
detector:pip The pip detector status:blocked Issue is blocked by another issue or external requirement type:feature Feature (new functionality)

Comments

@cobya
Copy link
Contributor

cobya commented Jun 18, 2024

PEP 658 – Serve Distribution Metadata in the Simple Repository API was made available in May 2021 to help improve dependency resolution across the pip tooling by serving metadata information in a slimmer API. In v20 of the pip tooling, there was also the introduction of --use-feature=fast-deps to start making use of this information.

For our own tooling, we can investigate if there is any notable performance improvement in installation report generation across the large dependency trees component-detection tests on. However, based on pypa/pip#8670 it is unlikely that there will be a noticeable increase in speed here until future improvements have been implemented.

The following PR pypa/pip#12208 attempts to address some of these concerns and reports to have an estimated benchmark improvement of ~50% in dependency resolution time. However, it is still actively in development with the most recent commit on the branch in May 2024. Until it is merged it may not bring a benefit to run --use-feature=fast-deps.

@cobya cobya added detector:pip The pip detector status:blocked Issue is blocked by another issue or external requirement type:feature Feature (new functionality) labels Jun 18, 2024
@cobya cobya changed the title Investigate usage of --use-feature=fast-deps in pip install --report Investigate usage of --use-feature=fast-deps in pip install --report Jun 18, 2024
@pauld-msft
Copy link
Member

Looks like there have been some updates on the linked pull request in the past week. Hoping that we can realize some benefit from this feature once those are in, it does not appear to have meaningful impact at the moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
detector:pip The pip detector status:blocked Issue is blocked by another issue or external requirement type:feature Feature (new functionality)
Projects
Development

No branches or pull requests

2 participants