Uh oh!
There was an error while loading. Please reload this page.
gh-111968: Split _Py_dictkeys_freelist out of _Py_dict_freelist - #115505
Conversation
20a4955 to
1710e24Compare@ericsnowcurrently@colesbury Ready to review! And this is the last PR. |
| /* 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.
I think we need only one of numfree or keys_numfree in each struct.
There was a problem hiding this comment.
nah copy and paste accident :)
ericsnowcurrently
left a comment
There was a problem hiding this comment.
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).
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When you're done making the requested changes, leave the comment: |
ericsnowcurrently
commented
Feb 15, 2024
And thanks for taking the time for this PR! |
corona10
commented
Feb 15, 2024
I have made the requested changes; please review again |
ericsnowcurrently
left a comment
There was a problem hiding this comment.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ericsnowcurrently
commented
Feb 16, 2024
Thanks again for all the great work on the freelists, @corona10! |
--disable-gilbuilds #111968