Skip to content

Commit

Permalink
fix(memory): update memory for build config for small ants
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Dec 7, 2024
1 parent 3d8ce22 commit bf665b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 .",
Expand Down
3 changes: 3 additions & 0 deletions src/common/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
stack_size: 262144 # 0.25 mb
initial_memory: 524288 # 0.5 mb
maximum_memory: 2097152 # 2 mb

0 comments on commit bf665b7

Please sign in to comment.