Multithreaded Memory Allocators for C/C++

后端 未结 8 1884
挽巷
挽巷 2020-11-29 18:55

I currently have heavily multi-threaded server application, and I\'m shopping around for a good multi-threaded memory allocator.

So far I\'m torn between:

8条回答
  •  半阙折子戏
    2020-11-29 19:13

    Probably a late response to your question , but

    why to do mallocs if you have performance hick ups ?

    Better way would be to do a malloc of a big memory window at the initialization and then come up with a light weight Memory manager that would lease out the memory chunks at run time.

    This avoids any possibility of system calls if your heap expansion.

提交回复
热议问题