Skip to content

Conversation

@Techatrix
Copy link
Member

Removes recursion from a various requests:

They may still call into code analysis which uses recursion heavily.

Some other utilities have also been converted:

  • nodesOverlappingIndex
  • callsite references
  • break statement search

@Techatrix Techatrix merged commit 246f938 into master Jan 17, 2026
6 checks passed
@Techatrix Techatrix deleted the techatrix/ast-walker branch January 17, 2026 20:30
Comment on lines +1388 to +1390
const result = array[0].unwrap() orelse return null;
@memmove(array[0 .. array.len - 1], array[1..]);
return result;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be clearing the last element after shifting? (i.e., after moving the items then array[array.len - 1] = .none;). Otherwise you're duplicating the last element and if full it'll cause issues?

Btw this PR is an awesome change!

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.

3 participants