Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/lwnode/lwnode-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@

#define LWNODE_VERSION_MAJOR 1
#define LWNODE_VERSION_MINOR 1
#define LWNODE_VERSION_PATCH 22
#define LWNODE_VERSION_TAG "v1.1.22"
#define LWNODE_VERSION_PATCH 23
#define LWNODE_VERSION_TAG "v1.1.23"
6 changes: 6 additions & 0 deletions src/api/engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ bool Engine::Dispose() {
}

#define DEFAULT_GC_FREE_SPACE_DIVISOR 24
#define DEFAULT_GC_HEAP_SIZE 1024 * 1024 * 4

void Engine::initialize() {
#ifndef NDEBUG
Expand All @@ -374,6 +375,11 @@ void Engine::initialize() {
gcFreeSpaceDivisor = DEFAULT_GC_FREE_SPACE_DIVISOR;
}

// Increase the heap size explicitly for performance
int result = GC_expand_hp(DEFAULT_GC_HEAP_SIZE);
LWNODE_DLOG_INFO(
"DEFAULT_GC_HEAP_SIZE: %d result: %d", DEFAULT_GC_HEAP_SIZE, result);

Memory::setGCFrequency(gcFreeSpaceDivisor);
gcHeap_.reset(GCHeap::create());

Expand Down