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-111968: Split _Py_dictkeys_freelist out of _Py_dict_freelist by corona10 · Pull Request #115505 · python/cpython Conversation
|
|
@ericsnowcurrently @colesbury Ready to review! And this is the last PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| /* Dictionary reuse scheme to save calls to malloc and free */ | ||
| PyDictObject *free_list[PyDict_MAXFREELIST]; | ||
| int numfree; | ||
| int keys_numfree; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think we need only one of numfree or keys_numfree in each struct.
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.
nah copy and paste accident :)
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.
Mostly LGTM
Aside from agreeing with @colesbury's point about dropping the "keys_numfree" fields, I have one mild suggestion about some local variable names (i.e. drop the "dict_"/"dictkeys_" prefix where not needed).
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 an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
When you're done making the requested changes, leave the comment: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
And thanks for taking the time for this PR! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again |
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.
Thanks for adjusting that! I have just one other small suggestion.
I'm approving the PR. I'll leave it up to you about my final suggestion.
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 an error while loading. Please reload this page.
|
Thanks again for all the great work on the freelists, @corona10! |
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.