Skip to content

Implement faster parsing. #13

@adwait

Description

@adwait

Parsing is super-linear (likely quadratic). Results from an application:

Parse Time (s) Program length
1 5465
4 9029
14 16142
52 30376
190 58915
742 116186

Likely due to p argument in parse_inst:

def parse_inst(line: str, p: list[Instruction]) -> Instruction:

How can we improve this?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions