This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients berker.peksag, bethard, christian.heimes, paul.j3, pitrou, rhettinger, serhiy.storchaka, vstinner, wolma, yan12125
Date 2017-04-28.06:05:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493359521.26.0.535764081653.issue30152@psf.upfronthosting.co.za>
In-reply-to
Content
After reverting some changes (import heapq on Raymond's request and import gettext since it is needed for the ArgumentParser constructor) the effect of the patch is reducing the number of imports by 6 and the time by 0.017 sec (> 10%) on my computer.

$ time for i in `seq 100`; do ./python -S -c 'import argparse; argparse.ArgumentParser()'; done

Unpatched:
real    0m13.236s
user    0m12.100s
sys     0m0.808s

Patched:
real    0m11.535s
user    0m10.356s
sys     0m0.756s
History
Date User Action Args
2017-04-28 06:05:21serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, pitrou, bethard, vstinner, christian.heimes, berker.peksag, paul.j3, wolma, yan12125
2017-04-28 06:05:21serhiy.storchakasetmessageid: <1493359521.26.0.535764081653.issue30152@psf.upfronthosting.co.za>
2017-04-28 06:05:21serhiy.storchakalinkissue30152 messages
2017-04-28 06:05:20serhiy.storchakacreate