neherlab / covid19_scenarios

Models of COVID-19 outbreak trajectories and hospital demand
https://covid19-scenarios.org
MIT License
1.36k stars 354 forks source link

Create webworker only once #661

Closed ivan-aksamentov closed 4 years ago

ivan-aksamentov commented 4 years ago

🙋 Feature Request

🔦 Context

We are currently creating a new webworker on every algorithm's run. This also trigger a network request that fetches the worker module every time. This is redundant and may leak memory.

😯 Describe the feature

I think webworker needs to be only instantiated once.

💻 Examples

💁 Possible Solution

Related

-