Skip to content

Allow configure option to link to tcmalloc/ jemalloc

Both the memory allocators provide better performance on small sized allocations.

Provide user options to link to jemalloc, tcmalloc. Both of them have been known to provide better performance for small sized memory allocations. The impact on long running apps must be evaluated before enabling it by default on production builds of node binary. Earlier versions of tcmalloc cause fragmentation leading to overhead in actual physical memory consumed for the same given number of bytes allocated.

Checklist
  • [ x] make -j4 test (UNIX), or vcbuild test (Windows) passes
  • [ x] tests and/or benchmarks are included
  • [ x] documentation is changed or added
  • [ x] commit message follows commit guidelines
Affected core subsystem(s)

Build

Merge request reports

Loading