-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
gh-132042: Try to optimize class creation #132156
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
base: main
Are you sure you want to change the base?
gh-132042: Try to optimize class creation #132156
Conversation
Maybe take a look at this comment and have it in mind. |
@StanFromIreland Yeah, thanks! I just checked both scripts - and timing closely same. But I not finished main task, so results can changed. |
Intermediate results:
|
I added tests from gh-76527 (script for testing with pyperf b.txt):
Also benchgcclasses2.py output:
new:
Time varies, I'm not sure it is statistically significant. Count of objects closely the same. Async import time (
new:
|
Remove resolve_slotdups (new2):
|
It is ready to review. Please take a look. |
WIP