Skip to content

Remove unnecessary GetIndex in comp init - #7264

Merged
metalgearsloth merged 1 commit into
space-wizards:masterfrom
metalgearsloth:2026-12-02-init-start-indices
Dec 2, 2026
Merged

metalgearsloth merged 1 commit into
space-wizards:masterfrom
metalgearsloth:2026-12-02-init-start-indices

Conversation

@metalgearsloth

Copy link
Copy Markdown
Contributor

Just return the archetype's ones direct, oop. Saves 2 array lookups for every comp init (startup is included), and 1 for shutdown.

Just return the archetype's ones direct.
@metalgearsloth
metalgearsloth added this pull request to the merge queue Dec 2, 2026
Merged via the queue into space-wizards:master with commit ee3e867 Dec 2, 2026
20 checks passed
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