-
Hi all, I've been searching around but I was unable to find a clear answer to this question: how can I ensure that all components of a specified type are stored fully contiguously (tightly packed / one page)? From what I've been able to gather, it seems like setting the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There was (actually, there is) a plan to make it fully contiguous when the page size is set to max value. |
Beta Was this translation helpful? Give feedback.
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 anstd::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…