Skip to content

Thunk optimization. #22

@V0ldek

Description

@V0ldek

The current version of Harper.Interpreter.Thunk engine creates many unnecessary thunks. To list some:

  • Wrapping a thunk into a thunk is unnecessary.
  • Wrapping any object expression other than variables into a thunk is unnecessary.
  • Wrapping literals into thunks is unnecessary.
    etc.

Most of these can be optimized away. First we need to identify a list of cases when thunks are absolutely necessary and then make sure that we only wrap these cases into thunks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions