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 — gh-81057: Move the global Dict-Related Versions to _PyRuntimeState by ericsnowcurrently · Pull Request #99497 · python/cpython Conversation
|
| PyDictObject *free_list[PyDict_MAXFREELIST]; | ||
| int numfree; | ||
| PyDictKeysObject *keys_free_list[PyDict_MAXFREELIST]; | ||
| int keys_numfree; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
How about reorder members to make struct compact?
| PyDictObject *free_list[PyDict_MAXFREELIST]; | |
| int numfree; | |
| PyDictKeysObject *keys_free_list[PyDict_MAXFREELIST]; | |
| int keys_numfree; | |
| PyDictObject *free_list[PyDict_MAXFREELIST]; | |
| PyDictKeysObject *keys_free_list[PyDict_MAXFREELIST]; | |
| int numfree; | |
| int keys_numfree; |
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.
I don't mind doing that, but it isn't much related to this PR and I was trying to minimize extra changes. That said, it is a fairly small and simple change so I'll go ahead and do it.
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.
done
Sorry, something went wrong.
There was an error while loading. Please reload this page.
5182895 to
f684dcd
Compare
|
Thanks for the review, @methane! For a domain-specific change to a complex component like this, it really helps to get an expert review, even if the change seems correct and straight-forward to me. 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.