~ chicken-core (chicken-5) 1995b31de157dc1c4214741159cd33786764d1b1
commit 1995b31de157dc1c4214741159cd33786764d1b1
Author: Evan Hanson <evhan@foldling.org>
AuthorDate: Mon Sep 5 22:54:31 2016 +1200
Commit: Evan Hanson <evhan@foldling.org>
CommitDate: Sat Sep 10 22:59:05 2016 +1200
Drop initial temp stack size to 256 words
The vast majority of programs won't need more than this, so reduce the
starting size to avoid paying more in memory than is typically required.
diff --git a/runtime.c b/runtime.c
index ada11f14..80f06904 100644
--- a/runtime.c
+++ b/runtime.c
@@ -162,7 +162,7 @@ static C_TLS int timezone;
#define WEAK_COUNTER_MASK 3
#define WEAK_COUNTER_MAX 2
-#define DEFAULT_TEMPORARY_STACK_SIZE 1024
+#define DEFAULT_TEMPORARY_STACK_SIZE 256
#define STRING_BUFFER_SIZE 4096
#define DEFAULT_MUTATION_STACK_SIZE 1024
#define PROFILE_TABLE_SIZE 1024
Trap