Currently, doing a scan over an indexed component doesn't return an ordered entity array, so when querying across multiple components, we need to sort before finding the intersection.
We can update to use a RBT to store components sorted by entity id and improve query performance.
Currently, doing a scan over an indexed component doesn't return an ordered entity array, so when querying across multiple components, we need to sort before finding the intersection.
We can update to use a RBT to store components sorted by entity id and improve query performance.