Message402151
runpy startup time matters a lot for "python3 -m module" startup time!
In Python 3.10 (bpo-41006 and bpo-41718), I reduced the number of modules imported by runpy:
"The runpy module now imports fewer modules. The python3 -m module-name command startup time is 1.4x faster in average. On Linux, python3 -I -m module-name imports 69 modules on Python 3.9, whereas it only imports 51 modules (-18) on Python 3.10. (Contributed by Victor Stinner in bpo-41006 and bpo-41718.)"
https://docs.python.org/dev/whatsnew/3.10.html#optimizations
--
For argparse, maybe it could use a few lazy imports to reduce the number of indirect impots on "import argparse"? |
|
Date |
User |
Action |
Args |
2021-09-19 10:39:46 | vstinner | set | recipients:
+ vstinner, lemburg, gvanrossum, brett.cannon, nascheme, rhettinger, terry.reedy, ronaldoussoren, ncoghlan, larry, methane, Mark.Shannon, eric.snow, indygreg, miss-islington, brandtbucher, BTaskaya, shihai1991 |
2021-09-19 10:39:46 | vstinner | set | messageid: <1632047986.66.0.432881476471.issue45020@roundup.psfhosted.org> |
2021-09-19 10:39:46 | vstinner | link | issue45020 messages |
2021-09-19 10:39:46 | vstinner | create | |
|