From f58b2a0358e920a04c903dd00d592079c2d544d0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 17 Sep 2021 15:21:40 +0200 Subject: [PATCH] LibJS: Increase time between garbage collections This patch ups the max number of heap allocations between each GC from 10'000 to 100'000. This is still relatively aggressive but already does a good job of cutting down on time spent in GC. --- Userland/Libraries/LibJS/Heap/Heap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Heap/Heap.h b/Userland/Libraries/LibJS/Heap/Heap.h index 99cb29743c..c0f661d5e4 100644 --- a/Userland/Libraries/LibJS/Heap/Heap.h +++ b/Userland/Libraries/LibJS/Heap/Heap.h @@ -106,7 +106,7 @@ private: } } - size_t m_max_allocations_between_gc { 10000 }; + size_t m_max_allocations_between_gc { 100000 }; size_t m_allocations_since_last_gc { 0 }; bool m_should_collect_on_every_allocation { false };