3 ms·
If you allocate everything in advance and use free lists, you can probably do it. I believe that it is one of the few ways tinygo handles memory. (so embedded a
by aatd86 3y ago
If you allocate everything in advance and use free lists, you can probably do it. I believe that it is one of the few ways tinygo handles memory. (so embedded as a use-case)
Note that GC can be triggered manually.
I've had to do that using the wasm target so that I'd only trigger go GC cycles when the browser was idle.
Eventually that use-case might disappear as the integration with a garbage-collected wasm gets deeper.