Skip to content

refactor: Make consumer tree traversals iterative#717

Open
DataTriny wants to merge 1 commit into
mainfrom
fix-recursive-fns
Open

refactor: Make consumer tree traversals iterative#717
DataTriny wants to merge 1 commit into
mainfrom
fix-recursive-fns

Conversation

@DataTriny
Copy link
Copy Markdown
Member

Using recursive functions on trees whose depth is controlled by the user is dangerous as it can lead to stack overflows.

Increases test coverage of affected functions before making them iterative. We might want to bring smallvec in the future to avoid some memory allocations.

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

Successfully merging this pull request may close these issues.

1 participant