From 3324b894adfc06d88c65ea7cb70d98a446f733d5 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 9 Jun 2026 20:57:16 -0400 Subject: Test small --- src/runtime.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/runtime.c') diff --git a/src/runtime.c b/src/runtime.c index c382306..2d5dede 100644 --- a/src/runtime.c +++ b/src/runtime.c @@ -25,10 +25,10 @@ u64 pit_value_data(pit_value v) { pit_runtime *pit_runtime_new(u8 *buf, i64 len) { pit_arena *a = pit_arena_new(buf, len, sizeof(u8)); pit_runtime *ret = pit_arena_alloc_back(a, sizeof(*ret)); - i64 heap_size = 64 * 1024 * 1024; - i64 symtab_size = 1024 * 1024; - i64 scratch_size = 1024 * 1024; - i64 stack_size = 64 * 1024; + i64 heap_size = len / 4; + i64 symtab_size = len / 8; + i64 scratch_size = len / 16; + i64 stack_size = len / 16; ret->heap = pit_arena_new(pit_arena_alloc_back(a, heap_size), heap_size, sizeof(pit_value_heavy)); ret->backbuffer = pit_arena_new(pit_arena_alloc_back(a, heap_size), heap_size, sizeof(pit_value_heavy)); ret->symtab = pit_arena_new(pit_arena_alloc_back(a, symtab_size), symtab_size, sizeof(pit_symtab_entry)); -- cgit v1.2.3