[issue43392] Optimize repeated calls to `__import__()`

2021-08-12 Thread Antoine Pitrou
Change by Antoine Pitrou : -- components: +Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> performance versions: +Python 3.11 -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___

[issue43392] Optimize repeated calls to `__import__()`

2021-08-12 Thread miss-islington
miss-islington added the comment: New changeset 03648a2a91f9f1091cd21bd4cd6ca092ddb25640 by Germán Méndez Bravo in branch 'main': bpo-43392: Optimize repeated calls to `__import__()` (GH-24735) https://github.com/python/cpython/commit/03648a2a91f9f1091cd21bd4cd6ca092ddb25640 --

[issue43392] Optimize repeated calls to `__import__()`

2021-03-03 Thread Germán Méndez Bravo
Change by Germán Méndez Bravo : -- keywords: +patch pull_requests: +23506 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24735 ___ Python tracker

[issue43392] Optimize repeated calls to `__import__()`

2021-03-03 Thread Germán Méndez Bravo
New submission from Germán Méndez Bravo : 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