diff options
| author | Ken Jin <kenjin4096@gmail.com> | 2022-06-04 00:41:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-04 00:41:18 +0800 |
| commit | d52ffc1d1f14576605195e4ed3a4d5d63497c3e3 (patch) | |
| tree | 12016895476caabdc350c7a4f92c130842cfa8c5 /Include/cpython/code.h | |
| parent | d8f40ead92b5a973cff3a30482a7659d3b46b1ba (diff) | |
| download | cpython-git-d52ffc1d1f14576605195e4ed3a4d5d63497c3e3.tar.gz | |
gh-93382: Cache result of `PyCode_GetCode` in codeobject (GH-93383)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Diffstat (limited to 'Include/cpython/code.h')
| -rw-r--r-- | Include/cpython/code.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h index ba7324b48d..f544ea8740 100644 --- a/Include/cpython/code.h +++ b/Include/cpython/code.h @@ -88,6 +88,7 @@ typedef uint16_t _Py_CODEUNIT; PyObject *co_qualname; /* unicode (qualname, for reference) */ \ PyObject *co_linetable; /* bytes object that holds location info */ \ PyObject *co_weakreflist; /* to support weakrefs to code objects */ \ + void *_co_code; /* cached co_code object/attribute */ \ /* Scratch space for extra data relating to the code object. \ Type is a void* to keep the format private in codeobject.c to force \ people to go through the proper APIs. */ \ |
