Skip to content

optimise try-except for the happy path #226

Closed
@iritkatriel

Description

@iritkatriel

The code is currently generated as something like this:

try-body
except-blocks
else-body
finally

if instead we do something like:

try-body
else-body
finally
except-blocks
finally (for except)

then there are fewer jumps in the happy path.

As a bonus, everything other than the except-blocks can be shared between try and try-star.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions