[issue30152] Reduce the number of imports for argparse
Serhiy Storchaka
report at bugs.python.org
Sat Sep 23 20:03:18 EDT 2017
Serhiy Storchaka added the comment:
On my new laptop 100 runs are sped up from 2.357 sec to 2.094 sec (by 13%). Got rid of importing 6 modules: _struct, collections.abc, copy, struct, textwrap, warnings.
Getting rid of importing errno leads to rewriting of os._execvpe() which looks less trivial. I leave this for separate PR.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30152>
_______________________________________
More information about the Python-bugs-list
mailing list