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

Reduce archetype size by storing layouts in a growing slice #327

Merged
merged 6 commits into from
Jan 14, 2024

Conversation

mlange-42
Copy link
Owner

@mlange-42 mlange-42 commented Jan 12, 2024

Use a growing slice to hold archetype mem layouts, instead of a fixes-size array.

Reduces archetype size from 4 kB to 88 B, plus the heap-allocated slice. The slice starts with size 16 (i.e. 16 component types) and grows in steps of 16 up to 256.

@mlange-42 mlange-42 added the internal internal refactorings label Jan 12, 2024
@mlange-42 mlange-42 self-assigned this Jan 12, 2024
@coveralls
Copy link
Collaborator

coveralls commented Jan 12, 2024

Pull Request Test Coverage Report for Build 7515866108

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 7514965557: 0.0%
Covered Lines: 4871
Relevant Lines: 4871

💛 - Coveralls

@mlange-42 mlange-42 marked this pull request as ready for review January 13, 2024 22:02
@mlange-42 mlange-42 added the performance Performance-related stuff label Jan 14, 2024
@mlange-42 mlange-42 merged commit 55baf5a into main Jan 14, 2024
13 checks passed
@mlange-42 mlange-42 deleted the flex-archetypes branch January 14, 2024 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal internal refactorings performance Performance-related stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants