39 ms·
I understand there's no CGo specifically, but I'm wondering if the Go runtime when running under WASM still has to manage switching out the goroutine stacks for
by alecthomas 3y ago
I understand there's no CGo specifically, but I'm wondering if the Go runtime when running under WASM still has to manage switching out the goroutine stacks for "WASM stacks" when it's calling out through the WASM VM.
Edit edit: from this comment it sounds like it is, as you say, just the general overhead of managing goroutine stacks. I wonder if TinyGo is more performant.
[1] https://news.ycombinator.com/item?id=37501552 https://news.ycombinator.com/item?id=37501552
- Patrickmi 3y agoTinygo runtime don’t have g or m threads that’s why it’s Cgo is zero cost