pallets / click

Python composable command line interface toolkit
https://click.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
15.73k stars 1.4k forks source link

investigate and improve startup speed #2267

Open davidism opened 2 years ago

davidism commented 2 years ago

Use python -X importtime to analyze the start up time based on the time it takes to import modules. Let's see how much we can move into function-level imports to make the initial startup faster. Tools like tuna can analyze the importtime output, and there are also other profilers, including memray, that may show additional places for speedup.

paxnovem commented 2 years ago

I can pick up this issue.