Skip to content

Commit

Permalink
replace wof alloc with mimalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Jul 12, 2024
1 parent ec33f14 commit e0db3b1
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 981 deletions.
12 changes: 11 additions & 1 deletion ww/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ add_library(ww STATIC
utils/btree.c
managers/socket_manager.c
managers/node_manager.c
managers/alloc-engine/wof_allocator.c
managers/memory_manager.c
managers/data/iprange_mci.c
managers/data/iprange_irancell.c
Expand Down Expand Up @@ -82,6 +81,17 @@ if(cjson_ADDED)
endif()



CPMAddPackage(
NAME mimalloc
VERSION 2.1.7
GITHUB_REPOSITORY microsoft/mimalloc
OPTIONS "BUILD_SHARED_LIBS OFF"

)
target_link_libraries(ww PUBLIC mimalloc)


# add libhv
set(WITH_OPENSSL OFF CACHE BOOL "libhv without openssl binding")
set(WITH_EVPP OFF CACHE BOOL "libhv no c++ eventpool")
Expand Down
Loading

0 comments on commit e0db3b1

Please sign in to comment.