diff options
author | Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | 2025-01-14 11:26:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-14 11:26:26 (GMT) |
commit | ff3e145b2770ffe86c905b1092747ce3d8381319 (patch) | |
tree | 761732d3fe2cc43937130ed9b00356b96d47d4fe /Misc | |
parent | 1153e66e20124b8f3484bcaddbc0e252d31161a6 (diff) | |
download | cpython-ff3e145b2770ffe86c905b1092747ce3d8381319.zip cpython-ff3e145b2770ffe86c905b1092747ce3d8381319.tar.gz cpython-ff3e145b2770ffe86c905b1092747ce3d8381319.tar.bz2 |
gh-118761: Improve import time of the `pickle` module. (#128732)
Importing `pickle` is now roughly 25% faster.
Importing the `re` module is no longer needed and
thus `re` is no more implicitly exposed as `pickle.re`.
---------
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2025-01-10-13-34-33.gh-issue-118761.qRB8nS.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2025-01-10-13-34-33.gh-issue-118761.qRB8nS.rst b/Misc/NEWS.d/next/Library/2025-01-10-13-34-33.gh-issue-118761.qRB8nS.rst new file mode 100644 index 0000000..a0a0f89 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-01-10-13-34-33.gh-issue-118761.qRB8nS.rst @@ -0,0 +1,3 @@ +Improve import time of :mod:`pickle` by 25% by removing an unnecessary +regular expression. As such, :mod:`re` is no more implicitly available +as ``pickle.re``. Patch by Bénédikt Tran. |