Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix map comparison being inverted #79

Merged
merged 1 commit into from
Jul 14, 2024
Merged

Conversation

Ukendio
Copy link
Owner

@Ukendio Ukendio commented Jul 14, 2024

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

@Ukendio Ukendio merged commit 8a7b3de into main Jul 14, 2024
2 checks passed
@Ukendio Ukendio deleted the fix-inversed-map-comparison branch July 16, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant