File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
src/pip/_internal/resolution/resolvelib Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 1
- Prepopulate find_all_candidates cache in parallel to reduce overhead when collecting packages to install .
1
+ Parallelize network requests when finding package candidates for installation .
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def __init__(
54
54
):
55
55
super ().__init__ ()
56
56
assert upgrade_strategy in self ._allowed_strategies
57
-
57
+ self . finder = finder
58
58
self .factory = Factory (
59
59
finder = finder ,
60
60
preparer = preparer ,
@@ -90,13 +90,8 @@ def resolve(
90
90
reporter ,
91
91
)
92
92
93
- if LACK_SEM_OPEN :
94
- # if a working threading implementation unavailable do nothing
95
- pass
96
- else :
97
- # otherwise greedily call/consume _finder.find_all_candidates in parallel
98
- # in order to populate the lru cache such that future calls don't block on
99
- # networking
93
+ if LACK_SEM_OPEN is False :
94
+
100
95
def _maybe_find_candidates (req : Requirement ) -> None :
101
96
ident = provider .identify (req )
102
97
try :
You can’t perform that action at this time.
0 commit comments