Closed kdblocher closed 3 years ago
Instead of hard-coded web workers, set up a worker pool, scheduler, and dependency queue. Use this library for inspiration: https://dev.to/zakhenry/parallel-computation-in-the-browser-with-observable-webworkers-hci
I wasn't able to get dds working with https://github.com/GoogleChromeLabs/comlink-loader on the first pass, so either adapt/rewrite the observable shim or use a different loader.
This improvement is needed to make #95 possible, and will help with the code splitting for #79.
Instead of hard-coded web workers, set up a worker pool, scheduler, and dependency queue. Use this library for inspiration: https://dev.to/zakhenry/parallel-computation-in-the-browser-with-observable-webworkers-hci
I wasn't able to get dds working with https://github.com/GoogleChromeLabs/comlink-loader on the first pass, so either adapt/rewrite the observable shim or use a different loader.
This improvement is needed to make #95 possible, and will help with the code splitting for #79.