diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-17 15:21:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-17 15:23:18 +0200 |
commit | f58b2a0358e920a04c903dd00d592079c2d544d0 (patch) | |
tree | dec3fbd4e9b7ded948bf5b471241b9395f58e729 /Userland/Libraries/LibJS | |
parent | c2c007b356e62044e8b7dcea71bd2ad559570248 (diff) | |
download | serenity-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.h | 2 |
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 }; |