From bf665b76a9ce028c799aff7a45deab2b9f3fdf55 Mon Sep 17 00:00:00 2001 From: atticusofsparta Date: Fri, 6 Dec 2024 19:40:36 -0600 Subject: [PATCH] fix(memory): update memory for build config for small ants --- package.json | 2 +- src/common/config.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/common/config.yml diff --git a/package.json b/package.json index 906d914..55c437b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "type": "module", "scripts": { "module:build": "cd src/common && ao build && mv process.wasm ../../tools/fixtures/process.wasm && cd ../..", - "module:publish": "cd src && ao publish process.wasm -w ../tools/key.json --tag=\"Memory-Limit\" --value=\"1-gb\" --tag=\"Compute-Limit\" --value=\"9000000000000\" && cd ..", + "module:publish": "cd src/common && ao publish process.wasm -w ../../tools/key.json --tag=\"Memory-Limit\" --value=\"1-gb\" --tag=\"Compute-Limit\" --value=\"9000000000000\" && cd ../..", "module:load": "node tools/load-module.mjs", "module:spawn": "node tools/spawn-module.mjs", "lint": "luacheck .", diff --git a/src/common/config.yml b/src/common/config.yml new file mode 100644 index 0000000..a692ca2 --- /dev/null +++ b/src/common/config.yml @@ -0,0 +1,3 @@ +stack_size: 262144 # 0.25 mb +initial_memory: 524288 # 0.5 mb +maximum_memory: 2097152 # 2 mb