-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
poetry install is slow / make resolver smarter (more lazy) #65
Comments
On a cold cache, yes, this is expected. See https://poetry.eustace.io/docs/basic-usage/#specifying-dependencies. The resolver flattens the dependency graph to be sure to be exhaustive. So, if your package or one the dependency sets wildcard dependencies, the resolver will pick up every package. For now, there is no way around it since the resolver was designed with exhaustiveness in mind rather than speed. However, I am working on improving the speed of the resolution but this is rather tricky. |
Awesome work @sdispater, that will be really useful |
Release |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Running
poetry install
on poetry itself (with poetry 0.8.5 frompip install --user poetry
) is slow:It took 7:12 minutes, mostly resolving dependencies - is that expected given a clear/cold cache?
Looking at
poetry -vvv debug:resolve
it turns out that it downloads/considersall available versions of
requests
for example, which are 120+:The text was updated successfully, but these errors were encountered: