Open tarrencev opened 1 year ago
I can try this one but I think I ll need a bit more details on the expected. Where is done the scan of an indexed component in the current code?
I think @milancermak is planning to take this
@tarrencev any more thoughts on this? It has been a while since we last discussed it and I know this is still an area that needs exploring. It would be a great first issue for a Cairo native to explore if they had a clear direction.
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.