Skip to content

Ensure component storage is fully contiguous? #982

Answered by skypjack
benpm asked this question in Q&A
Discussion options

You must be logged in to vote

There was (actually, there is) a plan to make it fully contiguous when the page size is set to max value.
However, this is somewhat a low priority task at the moment. Therefore I've not an eta for this feature yet.
Using a page size that is large enough works and avoid reallocations. The latter are one of the main issues with fully contiguous storage.
The other option is to just customize the storage type for T and make it use an std::vector internally or any other container. As long as the API is the expected one, the rest of the library and likely of your codebase won't be affected.
EnTT is designed to support mixins and full customizations of the storage types. I'm pretty sure it won't…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@benpm
Comment options

@skypjack
Comment options

Answer selected by benpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion it sounds interesting, let's discuss it
2 participants