pipenv: running pipenv by itself is slow
I don’t know if this is feasibly debuggable, or if this is even a bug.
I run pipenv
to get its help page, and it takes a surprisingly long time to show output. Here’s the results of one time pipenv
. Multiple runs gave similar results.
pipenv 0.79s user 0.12s system 99% cpu 0.912 total
Seems like it should be instantaneous to run what’s essentially a help page.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 18 (18 by maintainers)
@uranusjr good point. I thought to address those costly imports as close as possible to the origin, so as to fix performance in more places.
It turns out there are but a few places making imports lazy would speed up things significantly, and there are clear traces of past improvements, so probably it was newer changes that were made without lazy imports in mind that reintroduced the slowdowns.
I’ve posted a PR to address those: https://github.com/pypa/pipenv/pull/1917