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

Parse function definitions only once #7

Open
ArneBachmann opened this issue Jul 13, 2019 · 2 comments
Open

Parse function definitions only once #7

ArneBachmann opened this issue Jul 13, 2019 · 2 comments

Comments

@ArneBachmann
Copy link
Owner

Always parse (nested) function definitions only once, keeping them in a static immutable table.
This could also be the starting point for a clean way to avoid or allow function override in a controlled manner, and lead to a speed-up.

Related is the handling of function references, that currently only contain the function's name, but could point to a table index instead for different override versions of the same function name.

@ArneBachmann
Copy link
Owner Author

Requires a new runtime token for compiled function references (vs. reference on stack with apply).

@ArneBachmann
Copy link
Owner Author

Same could be used for static lists (currently there are no dynamic "literal" lists)

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