Message402118
> It would be nice to freeze argparse.py and its dependencies. For command-line tools, startup time is important.
I quickly checked, and argparse has at least these dependencies:
argparse
re
enum
types
operator
functools
collections
keyword
reprlib
sre_compile
sre_parse
sre_constants
copyreg
gettext
Raymond, do you think we should also freeze the dependencies of runpy (so "python -m <module>" also starts faster)?
That would be
runpy
importlib
warnings
importlib.machinery
importlib.util
importlib._abc
contextlib
collections
keyword
operator
reprlib
functools
types
(I didn't dedupe this from the previous list.)
With all these modules frozen we'd probably run more risk of two things:
- frozen modules don't have a __file__ (and are missing a few other, less commonly used, attributes)
- editing a frozen module requires rebuilding, or running with -X frozen_modules=off |
|
Date |
User |
Action |
Args |
2021-09-18 02:48:03 | gvanrossum | set | recipients:
+ gvanrossum, lemburg, brett.cannon, nascheme, rhettinger, terry.reedy, ronaldoussoren, ncoghlan, vstinner, larry, methane, Mark.Shannon, eric.snow, indygreg, miss-islington, brandtbucher, BTaskaya, shihai1991 |
2021-09-18 02:48:03 | gvanrossum | set | messageid: <1631933283.1.0.317699230251.issue45020@roundup.psfhosted.org> |
2021-09-18 02:48:03 | gvanrossum | link | issue45020 messages |
2021-09-18 02:48:02 | gvanrossum | create | |
|