]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43760: Speed up check for tracing in interpreter dispatch (#25276)
authorMark Shannon <mark@hotpy.org>
Tue, 13 Apr 2021 10:08:14 +0000 (11:08 +0100)
committerGitHub <noreply@github.com>
Tue, 13 Apr 2021 10:08:14 +0000 (11:08 +0100)
commit9e7b2076fb4380987ad0262c4c0ca900b06475ad
treed7a4902fa70e0014849fd77f07d89f39bb2e7494
parentc2b7a66b91cdb96fbfdb160f96797208ddc5e436
bpo-43760: Speed up check for tracing in interpreter dispatch (#25276)

* Remove redundant tracing_possible field from interpreter state.

* Move 'use_tracing' from tstate onto C stack, for fastest possible checking in dispatch logic.

* Add comments stressing the importance stack discipline when dealing with CFrames.

* Add NEWS
Include/cpython/pystate.h
Include/internal/pycore_interp.h
Misc/NEWS.d/next/Core and Builtins/2021-04-08-12-20-29.bpo-43760.tBIsD8.rst [new file with mode: 0644]
Python/ceval.c
Python/pystate.c
Python/sysmodule.c