From a35ac17b86593553f4051419543ac25a2ccfb683 Mon Sep 17 00:00:00 2001 From: liquidev Date: Wed, 4 Sep 2024 22:28:39 +0200 Subject: [PATCH] bump up limits even further my VPS has 8 gigabytes of RAM. it's not exactly out of the question to buy a larger one, and in the future we could just, y'know, not preallocate _all_ the memory, and instead reallocate if a certain threshold is reached --- rkgk.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rkgk.toml b/rkgk.toml index 4681177..9a56ffe 100644 --- a/rkgk.toml +++ b/rkgk.toml @@ -70,14 +70,14 @@ max_chunks = 2 max_defs = 256 # Maximum amount of tokens a single chunk can have. -max_tokens = 4096 +max_tokens = 65536 # Maximum amount of events that the parser may emit in a single chunk. # These don't take up that much memory (a byte per event), so having many of these isn't a big deal. max_parser_events = 65536 # Maximum amount of AST nodes in a single parse. -ast_capacity = 4096 +ast_capacity = 65536 # Maximum size of a bytecode chunk. # This must be <= 65536 due to bytecode limitations - offsets are stored as 16-bit integers.