alecthomas / alecthomas/entityx
Further optimization of PackedColumnStorage when get entities_with_components?
オープン
- 主要言語
- C++
- スター
- 2.3k
- フォーク
- 301
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。