8000 gh-121423: Improve import time of `socket` by writing `socket.errorTab` as a constant and lazy import modules by Wulian233 · Pull Request #121424 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-121423: Improve import time of socket by writing socket.errorTab as a constant and lazy import modules #121424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Sep 4, 2024
Prev Previous commit
undo 3.14.rst
  • Loading branch information
Wulian233 authored Sep 3, 2024
commit fa493950862a325007bbf9e056f8da957b01bd60
9 changes: 0 additions & 9 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,6 @@ asyncio
reduces memory usage.
(Contributed by Kumar Aditya in :gh:`107803`.)


socket
-------

* Improve import time of :mod:`socket` by lazy importing modules and
writing :data:`!socket.errorTab` as a constant, which results in
a 30% speed up in standard pyperformance benchmarks.
(Contributed by Jiahao Li in :gh:`121424`.)

Deprecated
==========

Expand Down
Loading
0