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

GH-96636: Remove all uses of NOTRACE_DISPATCH #96643

Merged

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Sep 7, 2022

Copy link
Member

@brandtbucher brandtbucher left a comment

Thanks for the quick PR!

Lib/test/test_dynamic.py Outdated Show resolved Hide resolved
Lib/test/test_dynamic.py Outdated Show resolved Hide resolved
@mdboom
Copy link
Contributor

mdboom commented Sep 7, 2022

Naive question: Do we expect this to have a performance impact, and should we measure it?

@brandtbucher
Copy link
Member

brandtbucher commented Sep 7, 2022

Mark and I both benchmarked similar changes independently this week. I saw a 0% slowdown, he saw a 1% slowdown. So the perf impact is likely <1%.

markshannon and others added 3 commits Sep 7, 2022
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
…e-96636.YvN-K6.rst

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
@Fidget-Spinner Fidget-Spinner changed the title GH-96636: Remove unsafe uses of NOTRACE_DISPATCH GH-96636: Remove all uses of NOTRACE_DISPATCH Sep 7, 2022
Copy link
Member

@Fidget-Spinner Fidget-Spinner left a comment

LGTM. The fix looks fine. Just one question about the tests.

Lib/test/test_dynamic.py Show resolved Hide resolved
Copy link
Member

@gvanrossum gvanrossum left a comment

Just nits.

Lib/test/test_dynamic.py Show resolved Hide resolved
Lib/test/test_dynamic.py Outdated Show resolved Hide resolved
Lib/test/test_dynamic.py Show resolved Hide resolved
Python/ceval.c Show resolved Hide resolved
Python/ceval.c Show resolved Hide resolved
@markshannon markshannon merged commit aa3b4cf into python:main Sep 8, 2022
14 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Sep 8, 2022

Thanks @markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒🤖 I'm not a witch! I'm not a witch!

@miss-islington
Copy link
Contributor

miss-islington commented Sep 8, 2022

Sorry, @markshannon, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker aa3b4cf779b3dddb84e094879b91703354910d8c 3.11

@markshannon markshannon deleted the remove-unsafe-notrace-dispatch branch Sep 8, 2022
markshannon added a commit to faster-cpython/cpython that referenced this issue Sep 8, 2022
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
(cherry picked from commit aa3b4cf)
@bedevere-bot
Copy link

bedevere-bot commented Sep 8, 2022

GH-96688 is a backport of this pull request to the 3.11 branch.

gvanrossum pushed a commit that referenced this issue Sep 9, 2022
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
(cherry picked from commit aa3b4cf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants