-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Improving pipenv lock performances #3417
Comments
It will be nice for pypi to do that hash calculation, and even for dependency resolution. :D But it's not and we can make our own. It will be so cool if we could make this dependency resolution as a service, and I'm definitely +1 for it! |
In addition to caching hashes from pypi (pip already caches downloaded packages), it's probably worth caching the set of dependencies of local editable package installs. We have a project with a load of editable packages installed in a venv, it's nice to work in. However, |
I think there are two primary things we can do to improve performance overall: There may be other things, but I see those as the big two, and I have performance numbers on the # 1 PR that are quite promising. Open to feedback, so let me know what you think. |
Hi!
I was recently bit by the infamous slowness of the
lock
command. I was thinking that I could improve the performances by just pre-calculating the hashes and dependencies of all our company's projects and modify the underling implementation a bit.Scaling up to the whole project, I think it's overkill to do that a priori on the whole PyPi database, but maybe we could apply a mechanism that upload your local cache to a central location, every now and then.
It wouldn't be that hard to develop and maintain (provided a place to store the data) and, with time, it will cover pretty much all the python packages currently used.
I could surely help in this regards as I'm doing something similar in my spare time.
What do you think?
The text was updated successfully, but these errors were encountered: