# Feature or enhancement ### Proposal: As noted in https://discuss.python.org/t/deferred-computation-evalution-for-toplevels-imports-and-dataclasses/34173, `typing` isn't the slowest stdlib module in terms of import time, but neither is it one of the quickest. We should speed it up, if possible. ### Links to previous discussion of this feature: https://discuss.python.org/t/deferred-computation-evalution-for-toplevels-imports-and-dataclasses/34173 <!-- gh-linked-prs --> ### Linked PRs * gh-109651 * gh-109789 * gh-109803 * gh-109804 * gh-109822 * gh-109824 * gh-109829 * gh-110221 * gh-110247 * gh-110286 * gh-112995 * gh-114509 * gh-114664 * gh-115160 * gh-118697 <!-- /gh-linked-prs -->
Feature or enhancement
Proposal:
As noted in https://discuss.python.org/t/deferred-computation-evalution-for-toplevels-imports-and-dataclasses/34173,
typingisn't the slowest stdlib module in terms of import time, but neither is it one of the quickest. We should speed it up, if possible.Links to previous discussion of this feature:
https://discuss.python.org/t/deferred-computation-evalution-for-toplevels-imports-and-dataclasses/34173
Linked PRs
typing.py: improve import time by creating soft-deprecated members on demand #109651enumimport time by avoiding import offunctools#109789Lib/directory #109803typesinfunctools#109804recursive_reprindataclasses#109822email.utils#109824importlib.metadata._adapters#109829random#110221random(GH-110221) #110247warningsin several modules #110286loggingby lazy loadingtraceback#112995