Scalable memory allocator experiences

前端 未结 4 447
野性不改
野性不改 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条回答
  •  囚心锁ツ
    2020-12-29 16:19

    I tried to go your path a while ago when faced with a multi-threaded contention and a severe fragmentation problem. After quite abit of testing I concluded that the benefit of these allocators is negligible in most of the interesting cases I had.

    The real solution was to pull my own memory manager which was specialized to the tasks I was doing most often.

提交回复
热议问题