diff options
| author | LLLL Colonq <llll@colonq> | 2026-06-09 20:57:16 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-06-09 20:57:16 -0400 |
| commit | 3324b894adfc06d88c65ea7cb70d98a446f733d5 (patch) | |
| tree | e361d25aefe29cc307ed438946b7f5bac9e60ed6 /src/runtime.c | |
| parent | 08ca0370b7bd4cce61723b6d6ec9b85ff38fc51a (diff) | |
Test small
Diffstat (limited to 'src/runtime.c')
| -rw-r--r-- | src/runtime.c | 8 |
1 files changed, 4 insertions, 4 deletions
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)); |
