Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
gh-99254: remove all unused consts from code objects#99255
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
bedevere-bot commentedNov 8, 2022
🤖 New build scheduled with the buildbot fleet by@iritkatriel for commita9f38fd 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The code looks good to me. A couple of little things, but they could go either way.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
sweeneyde commentedNov 10, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Unfortunately, I can reproduce the Windows failures locally. I get a segfault when
Maybe the |
I think it is before - extended args are added in assemble_emit. |
brandtbucher commentedNov 10, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
But jump distances are computed in |
Misc/NEWS.d/next/Core and Builtins/2022-11-08-17-47-10.gh-issue-99254.RSvyFt.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
bedevere-bot commentedNov 10, 2022
When you're done making the requested changes, leave the comment: |
Ah right, there's a comment about this in the code. |
Ok, that fixed it. I wonder why it only showed up on windows. |
I bet the startup sequence contains quite a bit of Windows-specific code. Probably just a really lucky/unlucky code path. |
…e-99254.RSvyFt.rstCo-authored-by: Brandt Bucher <brandtbucher@gmail.com>
I have made the requested changes; please review again. |
bedevere-bot commentedNov 10, 2022
Thanks for making the requested changes! @sweeneyde,@brandtbucher: please review the changes made to this pull request. |
bedevere-bot commentedNov 11, 2022
🤖 New build scheduled with the buildbot fleet by@iritkatriel for commit02b68e0 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Thanks for the reviews and debugging help. |
Uh oh!
There was an error while loading.Please reload this page.
This reduces the total size of unused consts in the top 100 PyPl packages by about 2%:
Before:
Total: 75 errors; 9,946 files; 235,684 code objects; 3,669,436 lines; 31,309,347 opcodes; 31,073,663 opcode pairs; 12,916,440.0 cache_size; 9,198,802.0 cache wasted; 1,858,819 ops quickened; 44,504 prev extended args;1,509,350 total size of co_consts; 189,300 number of co_consts
After:
Total: 75 errors; 9,946 files; 235,684 code objects; 3,669,436 lines; 31,307,877 opcodes; 31,072,193 opcode pairs; 12,915,869.0 cache_size; 9,198,231.0 cache wasted; 1,858,819 ops quickened; 43,034 prev extended args;1,477,889 total size of co_consts; 189,286 number of co_consts