[WIP] Turn on jemalloc, turn off custom allocators by default #1949
Conversation
5b06482
to
faf066a
Compare
8b03313
to
2e83ae3
Compare
So, some observations:
I can change the behavior of the |
Fixed the vcpkg |
3f6e612
to
b533073
Compare
9b55f84
to
549aa1f
Compare
@ras0219-msft Thanks, building jemalloc is working now! It looks like |
@leodemoura What do you think about changing |
@Kha I think we can remove the |
BTW, I will try this PR today on OSX and MSys2. |
Fine with me. |
I think so. At least for me, Msys2 is the preferred way of building Lean on Windows. |
Here is some information for the PR.
Time to build core lib with configuration 1) is 41 secs. The default configuration takes 50.1 secs. |
tl;dr: 20% faster, 20% less memory :)
Not 100% sure the CI configs are correct yet.
CUSTOM_ALLOCATORS=ON, JEMALLOC=OFF, TCMALLOC=OFF
:CUSTOM_ALLOCATORS=ON, JEMALLOC=ON
:CUSTOM_ALLOCATORS=OFF, JEMALLOC=ON
:CUSTOM_ALLOCATORS=OFF, TCMALLOC=ON
: