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

Cache AlreadyInstalledCandidate #9265

Merged

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Dec 11, 2020

Since the "Requirement already satisfied" message is printed during candidate preparation, instantiating the candidate multiple times result in excessive logging during intensive backtracking. By caching the already-installed candidates, each package is only prepared, and thus only logged once.

Close #9117.

This does not make the resolver any faster (multiple issues can be used to track this optimisation, e.g. #9215). The patch only fixes the repetitive logging.

@uranusjr uranusjr force-pushed the new-resolver-cache-installed-candidates branch from af94239 to 1fc95f4 Compare December 11, 2020 18:31
Since the "Requirement already satisfied" message is printed during
candidate preparation, instantiating the candidate multiple times result
in excessive logging during intensive backtracking. By caching the
already-installed candidates, each package is only prepared, and thus
only logged once.
@uranusjr uranusjr force-pushed the new-resolver-cache-installed-candidates branch from 1fc95f4 to 120105d Compare December 11, 2020 18:40
@pradyunsg pradyunsg merged commit 0aee48f into pypa:master Dec 11, 2020
@pradyunsg pradyunsg added this to the 20.3.2 milestone Dec 11, 2020
@uranusjr uranusjr deleted the new-resolver-cache-installed-candidates branch December 12, 2020 01:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redundant "Requirement already satisfied" output in 20.3b1
3 participants