[Interest] memory fragmentation?
André Somers
andre at familiesomers.nl
Wed Aug 22 15:16:28 CEST 2012
Op 21-8-2012 12:01, Bo Thorsen schreef:
> Things you can do to combat this is mostly to make your objects smaller.
> For example, use linked lists instead of arrays. The lists will add 4
> bytes to each object, but the the object sizes are much smaller.
Note that you may not need to go as extreme as going for a full-on
linked list. There are containers possible that go somewhere in between,
like a linked-list of arrays or similar solutions that segment the
memory into chunks of reasonable size. That has a much smaller overhead
than a complete linked list.
André
More information about the Interest
mailing list