gh-117139: Add _PyTuple_FromStackRefSteal and use it (#121244)

Avoids the extra conversion from stack refs to PyObjects.
This commit is contained in:
Sam Gross 2024-07-02 12:30:14 -04:00 committed by GitHub
parent 1ac273224a
commit 8e8d202f55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 28 additions and 33 deletions

View file

@ -48,7 +48,7 @@ extern "C" {
CPython refcounting operations on it!
*/
typedef union {
typedef union _PyStackRef {
uintptr_t bits;
} _PyStackRef;