Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thunk optimization. #22

Open
V0ldek opened this issue Apr 30, 2020 · 0 comments
Open

Thunk optimization. #22

V0ldek opened this issue Apr 30, 2020 · 0 comments

Comments

@V0ldek
Copy link
Owner

V0ldek commented Apr 30, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant