Skip to content

Use iterate_children() in Container nodes#118105

Open
KoBeWi wants to merge 1 commit intogodotengine:masterfrom
KoBeWi:illiterate_children
Open

Use iterate_children() in Container nodes#118105
KoBeWi wants to merge 1 commit intogodotengine:masterfrom
KoBeWi:illiterate_children

Conversation

@KoBeWi
Copy link
Copy Markdown
Member

@KoBeWi KoBeWi commented Apr 2, 2026

Changes for (int i = 0; i < get_child_count(); i++) to for (Node *child : iterate_children()) in all Container nodes where applicable. This might improve the performance a bit (especially in the editor, where there is lots of containers), but I didn't measure anything, so not adding the label.

@KoBeWi KoBeWi requested a review from a team as a code owner April 2, 2026 07:40
@KoBeWi KoBeWi added this to the 4.x milestone Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant