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 vstinner
Recipients berker.peksag, bethard, paul.j3, rhettinger, serhiy.storchaka, vstinner, wolma, yan12125
Date 2017-04-26.08:48:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
Raymond Hettinger added the comment:
> Some parts of the patch are harmless but other parts needlessly constipates the code for very little benefit.

In general, Python startup is currently the most severe performance
regression in Python 3 compared to Python 2.7:

Python 3.7 is the fastest of Python 3 versions, but Python 3.7 still
more than 2.2x slower than Python 2.7. 2.2x is a large number, it's
not a tiny slowdown.

I agree with Serhiy that argparse became more popular so became more
important for Python startup time in applications.

Maybe Serhiy can try to run a benchmark for get timing (milliseconds)
instead of comparing the number of imports?

Sorry, I didn't have time to review the change itself yet. But I like
efforts to optimize Python startup time in general.
Date User Action Args
2017-04-26 08:48:44vstinnersetrecipients: + vstinner, rhettinger, bethard, berker.peksag, paul.j3, serhiy.storchaka, wolma, yan12125
2017-04-26 08:48:44vstinnerlinkissue30152 messages
2017-04-26 08:48:44vstinnercreate