]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118761: Improve import time for `pstats` and `zipfile` (#128981)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Thu, 23 Jan 2025 14:49:36 +0000 (15:49 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Jan 2025 14:49:36 +0000 (14:49 +0000)
commita95dca7b9891e673e77f868cac05b2068bce8b3a
treeb3d3bd624aae6a67450b30c8b87fb97c91ba9e30
parentab353b31bb300d55e845476a8e265366455d93fc
gh-118761: Improve import time for `pstats` and `zipfile` (#128981)

Importing `pstats` or `zipfile` is now roughly 20% faster.

This is achieved by removing type annotations depending on `typing`.
Lib/pstats.py
Lib/zipfile/__init__.py
Misc/NEWS.d/next/Library/2025-01-18-11-24-02.gh-issue-118761.G8MmxY.rst [new file with mode: 0644]