Summary

Memory is called fragmented when the blocks of memory that are not in use are interspersed with blocks of memory that are in use. Memory fragmentation occurs when programs use memory dynamically. When blocks of memory are being allocated and released dynamically, it is unlikely that this will be done in such a manner that released blocks of memory will again form continuous, larger memory blocks. Fragmentation has the following characteristics:

  • Memory fragmentation is often hidden.

  • Memory fragmentation gets worse over time.

  • Memory fragmentation can slow down or even halt programs.

  • Memory fragmentation can happen simply because you are trying to avoid it.

Memory managers (MMs) can be added to programs or systems to improve on the memory management ...

Get C++ Footprint and Performance Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.