Feature or enhancement
Proposal:
Currently, Lib/logging/__init__.py and Lib/logging/config.py eagerly import traceback, despite it only being used during exception handling. Making this import lazy avoids unnecessary startup overhead and improves initial loading time.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
Before 41ms |
After 28ms(~31% faster) |
Feature or enhancement
Proposal:
Currently,
Lib/logging/__init__.pyandLib/logging/config.pyeagerly importtraceback, despite it only being used during exception handling. Making this import lazy avoids unnecessary startup overhead and improves initial loading time.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
traceback#150073