Skip to content

Commit ce43a87

Browse files
committed
Parallelize pip list {-o,-u}
1 parent 9a3c082 commit ce43a87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pip/_internal/commands/list.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
write_output,
2020
)
2121
from pip._internal.utils.packaging import get_installer
22+
from pip._internal.utils.parallel import map_multithread
2223
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
2324

2425
if MYPY_CHECK_RUNNING:
@@ -223,7 +224,7 @@ def latest_info(dist):
223224
dist.latest_filetype = typ
224225
return dist
225226

226-
for dist in map(latest_info, packages):
227+
for dist in map_multithread(latest_info, packages):
227228
if dist is not None:
228229
yield dist
229230

0 commit comments

Comments
 (0)