Message402118
| Author |
gvanrossum |
| Recipients |
BTaskaya, Mark.Shannon, brandtbucher, brett.cannon, eric.snow, gvanrossum, indygreg, larry, lemburg, methane, miss-islington, nascheme, ncoghlan, rhettinger, ronaldoussoren, shihai1991, terry.reedy, vstinner |
| Date |
2021年09月18日.02:48:02 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1631933283.1.0.317699230251.issue45020@roundup.psfhosted.org> |
| In-reply-to |
| Content |
> 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 |
|
History
|
|---|
| 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 |
|