kdblocher / bridge

Contract bridge system analysis tool for making the most out of your system book.
Other
3 stars 2 forks source link

Upgrade webworker architecture to worker pool #134

Closed kdblocher closed 3 years ago

kdblocher commented 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.