Skip to content
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

Speed up socket.errorTab and lazy import selectors #121423

Open
Wulian233 opened this issue Jul 6, 2024 · 0 comments
Open

Speed up socket.errorTab and lazy import selectors #121423

Wulian233 opened this issue Jul 6, 2024 · 0 comments
Labels
performance Performance or resource usage type-feature A feature request or enhancement

Comments

@Wulian233
Copy link
Contributor

Wulian233 commented Jul 6, 2024

Feature or enhancement

socket

>python -m timeit -n 1000 -s "import socket" "print(socket.__all__)"
1000 loops, best of 5: 407 usec per loop

>python -m timeit -n 1000 -s "import socket" "print(socket.__all__)"
1000 loops, best of 5: 352 usec per loop

1.15x faster

Linked PRs

@Wulian233 Wulian233 added the type-feature A feature request or enhancement label Jul 6, 2024
@Wulian233 Wulian233 changed the title Speed up socket.errotTab and lazy import selectors Jul 6, 2024
@sobolevn sobolevn added the performance Performance or resource usage label Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance or resource usage type-feature A feature request or enhancement
2 participants