alecthomas / alecthomas/entityx
Further optimization of PackedColumnStorage when get entities_with_components?
Open
- Dominant language
- C++
- Stars
- 2.3k
- Forks
- 301
- PR merge metrics
- No merged PRs in 30d
Description
Is optimization like this possible?
```c++
auto& column = getSmallestSizeColumn();
for (auto& component in column)
{
auto entity = getEntity(component)
if (entity.Contains()) { f(entity, cs...); }
}
```
When finding entities_with_components, iterate over the smallest size column to find entities instead of iterate all entities should get performance benefits when some components rarely exist.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.