Skip to content
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

Merged
merged 1 commit into from
Oct 19, 2018

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jun 3, 2018

Copy link
Member

@vstinner vstinner left a 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.

@serhiy-storchaka
Copy link
Member Author

This is for consistency with other PyMem_FREE. Do you suggest to replace other PyMem_MALLOC, PyMem_NEW and PyMem_FREE?

@vstinner
Copy link
Member

vstinner commented Jun 5, 2018

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.

This is for consistency with other PyMem_FREE.

It's up to you. It was just a remark.

@vstinner vstinner merged commit 6f17e51 into python:master Oct 19, 2018
@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @serhiy-storchaka and @vstinner, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 6f17e51345d930ccb4db306acc12b7d1f6c5e690 3.7

@miss-islington
Copy link
Contributor

Sorry, @serhiy-storchaka and @vstinner, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 6f17e51345d930ccb4db306acc12b7d1f6c5e690 3.6

@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @serhiy-storchaka and @vstinner, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 6f17e51345d930ccb4db306acc12b7d1f6c5e690 3.6

@miss-islington
Copy link
Contributor

Sorry, @serhiy-storchaka and @vstinner, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 6f17e51345d930ccb4db306acc12b7d1f6c5e690 3.7

@vstinner
Copy link
Member

I merged the PR.

vstinner removed needs backport to 3.6 needs backport to 3.7 labels a minute ago

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?

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Oct 20, 2018
…ed (pythonGH-7349).

(cherry picked from commit 6f17e51)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-bot
Copy link

GH-10000 is a backport of this pull request to the 3.7 branch.

serhiy-storchaka added a commit that referenced this pull request Oct 20, 2018
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Oct 20, 2018
…ed (pythonGH-7349).

(cherry picked from commit 6f17e51)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchaka serhiy-storchaka deleted the odict-od_fast_nodes branch October 20, 2018 08:36
@bedevere-bot
Copy link

GH-10001 is a backport of this pull request to the 3.6 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants