diff options
author | Sam Gross <colesbury@gmail.com> | 2024-11-22 17:55:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-22 12:55:33 -0500 |
commit | 4759ba6eec9f0b36b24b8eb7e7b120d471c67e82 (patch) | |
tree | ccadc7b0918507133e2f4ec4abff6d517f2b618e /Python/pystate.c | |
parent | 8214e0f709010a0e1fa06dc2ce004b5f6103cc6b (diff) | |
download | cpython-4759ba6eec9f0b36b24b8eb7e7b120d471c67e82.tar.gz cpython-4759ba6eec9f0b36b24b8eb7e7b120d471c67e82.zip |
gh-127022: Simplify `PyStackRef_FromPyObjectSteal` (#127024)
This gets rid of the immortal check in `PyStackRef_FromPyObjectSteal()`.
Overall, this improves performance about 2% in the free threading
build.
This also renames `PyStackRef_Is()` to `PyStackRef_IsExactly()` because
the macro requires that the tag bits of the arguments match, which is
only true in certain special cases.
Diffstat (limited to 'Python/pystate.c')
0 files changed, 0 insertions, 0 deletions