pdm-project / pdm

A modern Python package and dependency manager supporting the latest PEP standards
https://pdm-project.org
MIT License
7.94k stars 402 forks source link

Investigate relatively slow lock generation #1251

Closed SmileyChris closed 2 years ago

SmileyChris commented 2 years ago

A colleague put this Python package manager shootout together very recently.

While there are "Lies, damned lies, and statistics", it is interesting that the relative lock generation speed is much slower than the other tools. Is pdm doing a more thorough job in creating the lock? Is it's dependency graph generation slower? Maybe the shootout is just doing something incorrectly?

An area of improvement to look into, in any case...

frostming commented 2 years ago

Did you see the latest test result: https://github.com/lincolnloop/python-package-manager-shootout/actions/runs/2708687120 It is updated due to a cache not clean issue of Poetry. And also notice the thorough run time, you will get a different conclusion.

TiansuYu commented 2 months ago

@frostming I have been seeing slow locking issues as well on 2.18.1. May I ask what is the dependency resolution algorithm used by pdm? Is it pubgrub or something else?