8000 [3.11] gh-93382: Cache result of `PyCode_GetCode` in codeobject (GH-93383) by Fidget-Spinner · Pull Request #93493 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] gh-93382: Cache result of PyCode_GetCode in codeobject (GH-93383) #93493

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

Merged
merged 8 commits into from
Jun 23, 2022
Merged
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/3.11' into co_code_cached_back…
…port
  • Loading branch information
Fidget-Spinner committed Jun 22, 2022
commit c9798558b43d331d3fb269f36ee70b15e6588e79
1 change: 1 addition & 0 deletions Include/cpython/code.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ typedef uint16_t _Py_CODEUNIT;
PyObject *co_linetable; /* bytes object that holds location info */ \
PyObject *co_weakreflist; /* to support weakrefs to code objects */ \
PyObject *_co_code; /* cached co_code object/attribute */ \
char *_co_linearray; /* array of line offsets */ \
/* 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. */ \
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0