Improve the startup performance
Feature Description
Now PDM startup is still very slow, most of the time is occupied by importing modules.
Problem and Solution
If possible, make the imports lazy or wrap them in if TYPE_CHECKING when appropriate.
Before that, we should identify the hotspot by profiling PDM. Here are some recommendations: https://github.com/pdm-project/pdm/issues/3669#issuecomment-3524604799
Additional Context
No response
Are you willing to contribute to the development of this feature?
- [ ] Yes, I am willing to contribute to the development of this feature.
Feature Description
Now PDM startup is still very slow, most of the time is occupied by importing modules.
Problem and Solution
If possible, make the imports lazy or wrap them in
if TYPE_CHECKINGwhen appropriate.Before that, we should identify the hotspot by profiling PDM. Here are some recommendations: https://github.com/pdm-project/pdm/issues/3669#issuecomment-3524604799
Additional Context
No response
Are you willing to contribute to the development of this feature?
- [ ] Yes, I am willing to contribute to the development of this feature.
Hey @frostming I would love to work on this issue!! Could you please assign it to me!!
Unassigned to release this issue to the community.
Future contributors don't need to ask for assignment, send the PR directly and I will review.