-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-33712: Create the od_fast_nodes cache in OrderedDict only if needed. #7349
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <storchaka@gmail.com>
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 <storchaka@gmail.com>
GH-10001 is a backport of this pull request to the 3.6 branch. |
https://bugs.python.org/issue33712