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 Kronuz
Recipients Kronuz
Date 2021-03-03.20:48:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614804530.16.0.0156925953016.issue43392@roundup.psfhosted.org>
In-reply-to
Content
A call to `importlib.__import__()` normally locks the import for the module being worked on; this, however has a performance impact for modules that are already imported and fully initialized. An example of this are inline `__import__()` calls in a hot path that is called repeatedly during the life of the process.

Proposal: A two steps check in `importlib._bootstrap._find_and_load()` to avoid locking when the module has been already imported and it's ready.
History
Date User Action Args
2021-03-03 20:48:50Kronuzsetrecipients: + Kronuz
2021-03-03 20:48:50Kronuzsetmessageid: <1614804530.16.0.0156925953016.issue43392@roundup.psfhosted.org>
2021-03-03 20:48:50Kronuzlinkissue43392 messages
2021-03-03 20:48:50Kronuzcreate