Repository navigation
Entity index merged - #523
peterpothmann wants to merge 8 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #523 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 39 39
Lines 8409 8394 -15
=========================================
- Hits 8409 8394 -15 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
🚀 2 benchmark improvements detected! Click to expand benchmark resultsTime is per entity/N, allocations are totals. Allocations are only shown for current.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@peterpothmann Any idea what changed that Map.Get has no regression anymore? Nice, though. |
Also because of inlining: regression gone after "move Alive to storage" (56ebdbc). Before that, It is quite close to the inline limit though (76 of 80), so small changes in Get could bring it back. |
|
@peterpothmann Could you rebase (for the merged lock improvement) and resolve conflicts, please? |
3f232bc to
ffbe5de
Compare
Stores the entity generation in the entity index and removes the entity list of the entity pool.
Map.Get,World.Aliveetc. now read one array instead of two, which saves a cache miss per lookup in large worlds with shuffled entity IDs. Memory per entity drops from 16 to 12 bytes. No API change,EntityDumpformat unchanged.With 100k entities for the benchmarks, "Map.Get shuffled" might still fit largely into the CPU caches (?). It might be worth extending it to 1M entities to show the effect of cache misses.