alecthomas / alecthomas/entityx
Further optimization of PackedColumnStorage when get entities_with_components?
Abierto
- Lenguaje dominante
- C++
- Estrellas
- 2.3k
- Forks
- 301
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.