alecthomas / alecthomas/entityx
Further optimization of PackedColumnStorage when get entities_with_components?
Đang mở
- Ngôn ngữ chính
- C++
- Star
- 2.3k
- Fork
- 301
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.