Memory Pool - Memory Pool Vs Malloc

Memory Pool Vs Malloc

Benefits

  • Memory pools allow memory allocation with constant execution time (no fragmentation). The memory release for thousands of objects in a pool is just one operation, not one by one if malloc is used to allocate memory for each object.
  • Memory pools can be grouped in hierarchical tree structures, which is suitable for special programming structures like loops and recursions.
  • Fixed-size block memory pools do not need to store allocation metadata for each allocation, describing characteristics like the size of the allocated block. Particularly for small allocations, this provides a substantial space savings.

Drawbacks

  • Memory pools may need to be tuned for the application which deploys them.

Read more about this topic:  Memory Pool

Famous quotes containing the words memory and/or pool:

    For an actress to be a success, she must have the face of Venus, the brains of a Minerva, the grace of Terpsichore, the memory of a Macaulay, the figure of Juno, and the hide of a rhinoceros.
    Ethel Barrymore (1897–1959)

    I see by the papers that you have once more stirred that pool of intellectual stagnation, the educational convention.
    Elizabeth Cady Stanton (1815–1902)