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

[PERF] Improve Constant Folding Performance #86

Open
2 tasks
iamrecursion opened this issue Sep 14, 2023 · 0 comments
Open
2 tasks

[PERF] Improve Constant Folding Performance #86

iamrecursion opened this issue Sep 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@iamrecursion
Copy link
Contributor

Description

The interpreter uses constant folding liberally for correctness and accuracy during its operation. When trees are complex, this constant folding operation can take quite some time and result in quite a few allocations for values that are not necessarily kept.

Ideally we would like to improve performance of constant folding, perhaps my memoizing folded values at construction time of the nodes (but this requires sharing—see #79—to be efficient).

Spec

  • Work out the best approach to improving performance of constant folding.
  • Implement the approach.
@iamrecursion iamrecursion added the enhancement New feature or request label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant