📝ECS may provide better performance


Entity Component System (ECS)

Because systems tend to iterate over entities having a specific set of components, many implementations maintain a map of what entities have which components—this allows for quick querying.

Many implementation also store all components of the same type collocated, so the iteration is very fast. (Because it utilizes CPU cache lines well.)