-
Notifications
You must be signed in to change notification settings - Fork 486
Evaluating an AST node costs too much MEM? #6584
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
Comments
Attaching the statistics |
@effectfully will the eg
instead of
Otherwise
|
I'm not sure if that'll buy us much (or even anything at all) in terms of size or performance. Or can you think of something?
The issue with |
the cost of nodes evaluation will be the same right? the number of lambdas is the same of the number of let |
Why this is not a problem for |
You're asking an interesting question, I'll bring it up to the team.
Those have to have them, it wouldn't make much sense to only allow constructors with a single argument. Single |
@nau reported some stats and they suggest that evaluating AST nodes consumes 96.66% of MEM, which is an absurdly huge amount compared to the 3.34% that builtins consume. Does it really have to be that way? And if it does, should we prioritize working on solutions making MEM consumption lower by evaluating fewer AST nodes or producing fewer evaluation frames? For example by adding
fix
(issue) orlet
(issue) to the AST.The text was updated successfully, but these errors were encountered: