3 ms·
> Embedded loves contiguous blocks. Quite the opposite. When you have no dynamic allocations, vectors are out of the question, while pool of nodes is fine and
by ernst_klim 4y ago
> Embedded loves contiguous blocks.
Quite the opposite. When you have no dynamic allocations, vectors are out of the question, while pool of nodes is fine and sound.
And quite often you can't copy elements from one place to another in embedded or operating systems, since many consumers can store a pointer to this element. Of course this could be solved by usage of vector of pointers, but this completely ruins the ``cache locality'' argument.