python-lsp / python-lsp-server

Fork of the python-language-server project, maintained by the Spyder IDE team and the community
MIT License
1.75k stars 187 forks source link

How to profile? Slow to startup pylsp with ruff (3 seconds) and pylint (3 seconds). #550

Open kaddkaka opened 2 months ago

kaddkaka commented 2 months ago

Hi, when I open Neovim from commandline I notice that the first diagnostics take a long time to show. Sometimes I have seen delays of 10 seconds, rarely less than 2 seconds.

If I disable pylint I seem to gain around 3 seconds in startup time, if I disable ruff I also seem to gain 3 seconds.

Is there any way to measure what is actually taking time?

Environment: