mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
modify chunk size
This commit is contained in:
parent
3d46bcd47a
commit
b3ef1ed760
BIN
performance.xlsx
BIN
performance.xlsx
Binary file not shown.
2
src/memory/resource.h
Normal file → Executable file
2
src/memory/resource.h
Normal file → Executable file
@ -17,7 +17,7 @@
|
||||
namespace ipc {
|
||||
namespace mem {
|
||||
|
||||
using chunk_variable_alloc = variable_alloc<sizeof(void*) * 1024 * 1024 /* 8MB(x64) */>;
|
||||
using chunk_variable_alloc = variable_alloc<sizeof(void*) * 256 * 1024 /* 2MB(x64) */>;
|
||||
|
||||
template <std::size_t Size>
|
||||
using static_async_fixed = static_wrapper<async_wrapper<fixed_alloc<Size, chunk_variable_alloc>>>;
|
||||
|
||||
0
test/test_ipc.cpp
Normal file → Executable file
0
test/test_ipc.cpp
Normal file → Executable file
2
test/test_mem.cpp
Normal file → Executable file
2
test/test_mem.cpp
Normal file → Executable file
@ -25,7 +25,7 @@ private slots:
|
||||
void test_alloc_free();
|
||||
void test_static();
|
||||
void test_pool();
|
||||
} unit__;
|
||||
} /*unit__*/;
|
||||
|
||||
#include "test_mem.moc"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user