Message388057
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. |
|
Date |
User |
Action |
Args |
2021-03-03 20:48:50 | Kronuz | set | recipients:
+ Kronuz |
2021-03-03 20:48:50 | Kronuz | set | messageid: <1614804530.16.0.0156925953016.issue43392@roundup.psfhosted.org> |
2021-03-03 20:48:50 | Kronuz | link | issue43392 messages |
2021-03-03 20:48:50 | Kronuz | create | |
|