pdm icon indicating copy to clipboard operation
pdm copied to clipboard

Improve the startup performance

Open frostming opened this issue 2 months ago • 2 comments

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.

frostming avatar Nov 13 '25 08:11 frostming

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.

Hey @frostming I would love to work on this issue!! Could you please assign it to me!!

Mr-Sunglasses avatar Nov 23 '25 08:11 Mr-Sunglasses

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.

frostming avatar Dec 09 '25 04:12 frostming