We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a22663 commit dd3a3b5Copy full SHA for dd3a3b5
news/8504.feature
@@ -0,0 +1 @@
1
+Parallelize network operations in ``pip list``.
src/pip/_internal/commands/list.py
@@ -19,6 +19,7 @@
19
write_output,
20
)
21
from pip._internal.utils.packaging import get_installer
22
+from pip._internal.utils.parallel import map_multithread
23
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
24
25
if MYPY_CHECK_RUNNING:
@@ -223,7 +224,7 @@ def latest_info(dist):
223
224
dist.latest_filetype = typ
225
return dist
226
- for dist in map(latest_info, packages):
227
+ for dist in map_multithread(latest_info, packages):
228
if dist is not None:
229
yield dist
230
0 commit comments