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>
This commit is contained in:
Ken Jin 2022-06-04 00:41:18 +08:00 • committed by GitHub
parent d8f40ead92
commit d52ffc1d1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 4 deletions

View file

@ -1,7 +1,7 @@
// Auto-generated by Programs/freeze_test_frozenmain.py
unsigned char M_test_frozenmain[] = {
227,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,
0,0,0,0,0,115,160,0,0,0,151,0,100,0,100,1,
0,0,0,0,0,243,160,0,0,0,151,0,100,0,100,1,
108,0,90,0,100,0,100,1,108,1,90,1,2,0,101,2,
100,2,171,1,0,0,0,0,0,0,0,0,1,0,2,0,
101,2,100,3,101,0,106,3,0,0,0,0,0,0,0,0,
@ -23,10 +23,10 @@ unsigned char M_test_frozenmain[] = {
32,122,2,58,32,41,7,218,3,115,121,115,218,17,95,116,
101,115,116,105,110,116,101,114,110,97,108,99,97,112,105,218,
5,112,114,105,110,116,218,4,97,114,103,118,218,11,103,101,
116,95,99,111,110,102,105,103,115,114,2,0,0,0,218,3,
116,95,99,111,110,102,105,103,115,114,3,0,0,0,218,3,
107,101,121,169,0,243,0,0,0,0,250,18,116,101,115,116,
95,102,114,111,122,101,110,109,97,105,110,46,112,121,250,8,
60,109,111,100,117,108,101,62,114,17,0,0,0,1,0,0,
60,109,111,100,117,108,101,62,114,18,0,0,0,1,0,0,
0,115,140,0,0,0,248,240,6,0,1,11,128,10,128,10,
128,10,216,0,24,208,0,24,208,0,24,208,0,24,224,0,
5,128,5,208,6,26,212,0,27,208,0,27,216,0,5,128,
@ -36,5 +36,5 @@ unsigned char M_test_frozenmain[] = {
67,240,14,0,5,10,128,69,208,10,40,144,67,208,10,40,
208,10,40,152,54,160,35,156,59,208,10,40,208,10,40,212,
4,41,208,4,41,208,4,41,240,15,7,1,42,240,0,7,
1,42,114,15,0,0,0,
1,42,114,16,0,0,0,
};