Ukendio / jecs

A fast, portable Entity Component System for Luau
https://ukendio.github.io/jecs/
MIT License
121 stars 20 forks source link

Fix map comparison being inverted #79

Closed Ukendio closed 2 months ago

Ukendio commented 2 months ago

Map.size comparison was found to be inverted where it took the largest instead of the smallest pool of archetypes. This led to it iterating over redundant archetypes. The fix is simple, but the PR includes stylistic changes.

This fix massively improves performance and memory efficiency

image image