AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Slowness of Memory Leaks in WebAssembly
WebAssembly at the moment doesn't have a garbage collector as far as I know, although there's like a proposal that they're working on to sort of like standardize how a garbage collector should work. So in this case, like the garbage collector was actually implemented by the assembly script, like compiler. And essentially like their implementation turned out to be the majority of the slowness once we had like trimmed away like everything else we could do. We were also measuring, you know, like P50 execution time compared to P99 execution time, we were seeing like huge discrepancies there,. which turned out to being like a garbage collection issue or basically like anytime the garbage collector decided to interrupt it