Plotting Fractals in WebAssembly
|6: Zooming In
|7: WebAssembly and Web Workers
7: WebAssembly and Web Workers
In order to take advantage of the fact that plotting fractal images is an embarrassingly parallel task, we need to look at how we can spread out the computational workload across multiple instances of the same WebAssembly program. This is where we will see that Web Workers form the basic building block for this solution.
We now need to make quite a few small, but significant changes to our coding.
And along the way we will discover several gotcha’s that can prove confusing if you’re not already aware of them!