Scalable memory allocator experiences

前端 未结 4 477
野性不改
野性不改 2020-12-29 15:37

I am currently evaluating a few of scalable memory allocators, namely nedmalloc and ptmalloc (both built on top of dlmalloc), as a replacement for default malloc / new becau

4条回答
  •  梦毁少年i
    2020-12-29 16:01

    If you are on Win32 my experience has been that it's hard to beat the regular Windows heap manager provided you enable Low Fragmentation Heap using the HeapSetInformation API. I believe this is now standard on newer versions of Windows. It handles locking using Interlocked* Win32 primitives rather than more simple Mutex/CritSec locking.

提交回复
热议问题