2 ms·
Ad #1: yes, wolfram gloger. Ad #2: ptmalloc3 biggest advantage over dlmalloc 2.8.3 is for multiple threads, while trying to avoid lockcontention as much as pos
by rurban 10y ago
Ad #1: yes, wolfram gloger.
Ad #2: ptmalloc3 biggest advantage over dlmalloc 2.8.3 is for multiple threads, while trying to avoid lockcontention as much as possible.
But it also has e.g. a better API to support slabs and array or struct elements via independent_comalloc(), which speeds up my compiled code by 20%. You can alloc your elements in once and still individually free them.
See the malloc-2.8.3.h header: https://code.qt.io/cgit/qt/qt.git/tree/src/3rdparty/ptmalloc/malloc-2.8.3.h#n214 https://code.qt.io/cgit/qt/qt.git/tree/src/3rdparty/ptmalloc...
Ad #3: memory usage. ptmalloc2 has the least overhead. In my case with lots of arrays which can be independent_comalloc'ed this is not observable.