[PATCH] D101427: Linux support for mimalloc as a custom allocator
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 23 00:15:05 PST 2022
MaskRay added a comment.
Perhaps we don't need additional CMake code for using an alternative malloc on Linux.
For example, to use mimalloc it is simply `-DCMAKE_EXE_LINKER_FLAGS=-Wl,--push-state,--whole-archive,path/to/libmimalloc.a,--pop-state`
When linking a default build of chrome (no debug) and a Release build of clang, using libmimalloc.a is 1.12x as fast. LD_PRELOAD=path/to/libmimalloc.so is 1.11x as fast.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101427/new/
https://reviews.llvm.org/D101427
More information about the llvm-commits
mailing list