Private heap or memory management

I know that we could get some benefits from creating a private Windows heap, especially for often distributed and allocated small blocks. But I believe that the usual approach is to allocate a lot of memory from the heap by default and independently manage distributions and de-distributions. My question is, how are the advantages and disadvantages between these two ways?

Thanks Max

+3
source share
2 answers

Some benefits of managing your own heap:

  • You may be able to optimize your distribution needs and increase productivity.
  • Perhaps you can avoid using synchronization objects if you know the concurrency rules.
  • . , , , , , .

, , . , , , . , , , .

(, HeapAlloc):

  • .
  • concurrency /.
  • . .
+3

, , ( , , ).

- . , ( , ). , .

+2

Source: https://habr.com/ru/post/1744229/


All Articles