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 Dennis Sweeney, Mark.Shannon, kumaraditya, serhiy.storchaka
Date 2022-03-08.09:11:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646730691.61.0.400925745639.issue46953@roundup.psfhosted.org>
In-reply-to
Content
__import__() usually is not called directly, and in common case (when it is not overridden) the overhead of the call is avoided completely in the import statement.

And in non-trivial case, it would only save 80 microseconds if you import 1000 modules. I don't think there are many programs which import more than 1000 modules.
History
Date User Action Args
2022-03-08 09:11:31serhiy.storchakasetrecipients: + serhiy.storchaka, Mark.Shannon, Dennis Sweeney, kumaraditya
2022-03-08 09:11:31serhiy.storchakasetmessageid: <1646730691.61.0.400925745639.issue46953@roundup.psfhosted.org>
2022-03-08 09:11:31serhiy.storchakalinkissue46953 messages
2022-03-08 09:11:31serhiy.storchakacreate