bpo-33712: Create the od_fast_nodes cache in OrderedDict only if needed.#7349
Conversation
vstinner
left a comment
There was a problem hiding this comment.
PyMem_FREE should be replaced with PyMem_Free.
PyMem_FREE is just an old alias to PyMem_Free.
|
This is for consistency with other PyMem_FREE. Do you suggest to replace other PyMem_MALLOC, PyMem_NEW and PyMem_FREE? |
I'm not sure that it's worth it to replace them. I just suggest to avoid old aliases for new code.
It's up to you. It was just a remark. |
|
Thanks @serhiy-storchaka for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7. |
|
Sorry, @serhiy-storchaka and @vstinner, I could not cleanly backport this to |
|
Sorry, @serhiy-storchaka and @vstinner, I could not cleanly backport this to |
|
Thanks @serhiy-storchaka for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6. |
|
Thanks @serhiy-storchaka for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
|
Sorry, @serhiy-storchaka and @vstinner, I could not cleanly backport this to |
|
Sorry, @serhiy-storchaka and @vstinner, I could not cleanly backport this to |
|
I merged the PR.
I removed them because I understood that this change is an optimization... but oops, when I looked at https://bugs.python.org/issue33712 it looks more as a bugfix than an optimization. @serhiy-storchaka: do you want to backport this change manually? |
…ed (pythonGH-7349). (cherry picked from commit 6f17e51) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-10000 is a backport of this pull request to the 3.7 branch. |
…ed (pythonGH-7349). (cherry picked from commit 6f17e51) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-10001 is a backport of this pull request to the 3.6 branch. |
https://bugs.python.org/issue33712