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

Avoid stack overflow in AST iterators #204

Open
jubnzv opened this issue Oct 31, 2024 · 0 comments
Open

Avoid stack overflow in AST iterators #204

jubnzv opened this issue Oct 31, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jubnzv
Copy link
Member

jubnzv commented Oct 31, 2024

The fold* functions in iterators.ts should either be tail-recursive or use an iterative approach that leverages a stack data structure instead of the call stack to avoid stack overflow issues with large contracts. This has become a problem since #155 was completed, as we now have larger contracts.

@jubnzv jubnzv added the bug Something isn't working label Oct 31, 2024
@jubnzv jubnzv added this to the v0.6 milestone Oct 31, 2024
@jubnzv jubnzv self-assigned this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant