Message292328
In general I agree with Raymond's principle and I am not very happy doing these changes. But heavy startup is a sore spot of CPython.
For comparison Python 2.7 and optparse:
$ python -c 'import sys; s = set(sys.modules); import argparse; print(len(s), len(sys.modules), len(set(sys.modules) - s))'
(43, 63, 20)
$ python -S -c 'import sys; s = set(sys.modules); import argparse; print(len(s), len(sys.modules), len(set(sys.modules) - s))'
(15, 57, 42)
$ python -c 'import sys; s = set(sys.modules); import optparse; print(len(s), len(sys.modules), len(set(sys.modules) - s))'
(43, 56, 13)
$ python -S -c 'import sys; s = set(sys.modules); import optparse; print(len(s), len(sys.modules), len(set(sys.modules) - s))'
(15, 50, 35) |
|
Date |
User |
Action |
Args |
2017-04-26 09:39:10 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, bethard, vstinner, berker.peksag, paul.j3, wolma, yan12125 |
2017-04-26 09:39:10 | serhiy.storchaka | set | messageid: <1493199550.68.0.224601134986.issue30152@psf.upfronthosting.co.za> |
2017-04-26 09:39:10 | serhiy.storchaka | link | issue30152 messages |
2017-04-26 09:39:10 | serhiy.storchaka | create | |
|