JaimeGensler / thyseus

An archetypal Entity Component System, built entirely in Typescript
MIT License
74 stars 3 forks source link

[FEAT] Query iterator inlining #79

Open JaimeGensler opened 9 months ago

JaimeGensler commented 9 months ago

Describe the problem this feature solves

Inlining query iterators would be really cool and likely a solid performance jump in effectively every environment. Custom for...of iterators are typically kind of slow

Describe the solution you'd like to see

Handled by the transformer. Because query iteration is inherently nested this will require some sort of context tracking and labels to preserve breaks and continues