Results 3 comments of ctx

I found that the bevy engine use resource for singleton component. the resource stored at spareset.

the ecs project flecs query caches matched tables. can we use its implementation.