summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-17 15:21:40 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-17 15:23:18 +0200
commitf58b2a0358e920a04c903dd00d592079c2d544d0 (patch)
treedec3fbd4e9b7ded948bf5b471241b9395f58e729 /Userland/Libraries/LibJS
parentc2c007b356e62044e8b7dcea71bd2ad559570248 (diff)
downloadserenity-f58b2a0358e920a04c903dd00d592079c2d544d0.zip
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.
Diffstat (limited to 'Userland/Libraries/LibJS')
-rw-r--r--Userland/Libraries/LibJS/Heap/Heap.h2
1 files changed, 1 insertions, 1 deletions
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 };