[Bf-blender-cvs] [dde0765] master: CMake: Enable JeMalloc by default

Sergey Sharybin noreply at git.blender.org
Sat Feb 14 11:15:19 CET 2015


Commit: dde0765de2bf61afc063650159b6274ffe407b0a
Author: Sergey Sharybin
Date:   Sat Feb 14 15:13:48 2015 +0500
Branches: master
https://developer.blender.org/rBdde0765de2bf61afc063650159b6274ffe407b0a

CMake: Enable JeMalloc by default

It's really handy to have blender linked against jemalloc because of
much better memory fragmentation handling by that library.

To be noted: if jemalloc library is not found it'll be disabled with
message about that, no compilation error should happen.

===================================================================

M	CMakeLists.txt

===================================================================

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 026386a..29f8c81 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -369,7 +369,7 @@ endif()
 mark_as_advanced(LLVM_STATIC)
 
 # disable for now, but plan to support on all platforms eventually
-option(WITH_MEM_JEMALLOC   "Enable malloc replacement (http://www.canonware.com/jemalloc)" OFF)
+option(WITH_MEM_JEMALLOC   "Enable malloc replacement (http://www.canonware.com/jemalloc)" ON)
 mark_as_advanced(WITH_MEM_JEMALLOC)
 
 # currently only used for BLI_mempool




More information about the Bf-blender-cvs mailing list