From c8bbd4d52c4ab6c9fcd93915cb3fe23fb63e8279 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 1 Feb 2024 11:15:25 +1100 Subject: Reduce leveldb cache sizes and worker stacks, increase number of workers --- src/tasks/tasks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tasks/tasks.cpp') diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp index ea174039..d53eface 100644 --- a/src/tasks/tasks.cpp +++ b/src/tasks/tasks.cpp @@ -66,7 +66,7 @@ auto AllocateStack() -> cpp::span { // an eye-wateringly large amount of stack. template <> auto AllocateStack() -> cpp::span { - std::size_t size = 256 * 1024; + std::size_t size = 64 * 1024; return {static_cast(heap_caps_malloc(size, MALLOC_CAP_SPIRAM)), size}; } @@ -125,7 +125,7 @@ auto WorkerPool::Main(void* q) { } } -static constexpr size_t kNumWorkers = 3; +static constexpr size_t kNumWorkers = 4; static constexpr size_t kMaxPendingItems = 8; WorkerPool::WorkerPool() -- cgit v1.2.3