mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-40222: "Zero cost" exception handling (GH-25729)
"Zero cost" exception handling. * Uses a lookup table to determine how to handle exceptions. * Removes SETUP_FINALLY and POP_TOP block instructions, eliminating (most of) the runtime overhead of try statements. * Reduces the size of the frame object by about 60%.
This commit is contained in:
parent
b32c8e9795
commit
adcd220556
30 changed files with 6614 additions and 5687 deletions
|
|
@ -1258,7 +1258,8 @@ static PYC_MAGIC magic_values[] = {
|
|||
{ 3390, 3399, L"3.7" },
|
||||
{ 3400, 3419, L"3.8" },
|
||||
{ 3420, 3429, L"3.9" },
|
||||
{ 3430, 3439, L"3.10" },
|
||||
{ 3430, 3449, L"3.10" },
|
||||
{ 3450, 3469, L"3.11" },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue