Appearance
Develop and tune
Watch a module
--watch reruns the module when its file changes:
sh
wago run --watch --invoke render app.wasm 640 480The watcher polls every 200ms by default. Slow build pipelines and network filesystems may need a longer interval:
sh
wago run --watch --watch-interval 750ms app.wasmEach run gets a fresh compilation and instance. Globals, tables, and memory from the previous run do not carry over.
Parallel function work
Large modules can validate and compile their functions in parallel:
sh
wago run --parallel app.wasmWith no count, Wago uses its adaptive policy. Set a maximum when the surrounding system already has a concurrency budget:
sh
wago run --parallel=4 app.wasmSerial work remains the default because workers cost memory and scheduling time. Parallelism helps sufficiently large modules; it is overhead on tiny ones.
Compiler switches
The current runtime lists its optimization controls in help:
sh
wago run --helpStable optimizations already use their intended defaults. A --no-… form is useful for diagnosis and controlled benchmarks:
sh
wago run --no-inline app.wasmChange one variable at a time and measure your workload. Do not ship an experimental switch because its name sounds fast.
Where should a lasting override live?#
Put project-wide overrides under settings in wago.json. Keep a one-off diagnosis on the command line. See Configuration.
