GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — bpo-46712: Share global string identifiers in deepfreeze by kumaraditya303 · Pull Request #31261 · python/cpython Conversation
|
|
Extrapolating the list of global strings dynamically is a good idea. It would be best to do it in a separate PR. I've done so in gh-31346. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Instead of manually enumerating the global strings in generate_global_objects.py, we extrapolate the list from usage of _Py_ID() and _Py_STR() in the source files. This is partly inspired by gh-31261. https://bugs.python.org/issue46541
|
@kumaraditya303 Could you fix the conflicts? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
470037f to
e959ed6
Compare
Fixed |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@gvanrossum This is ready for review. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I looked at some of the generated output and this feels like it's a good improvement.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Waiting for the tests to run once more.
(Also, please go fix the interning error handling, even if you disagree.)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Okay, will create a PR tomorrow. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks Kumar! It's nice to see us regain some of the space costs of deep-freezing modules. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Where appropriate, deepfreeze.c now uses `&_Py_ID(blah)` references instead of locally defining constants. This saves some space.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.