27 ms·
is web worker really good for some costly processes? would it really be useful for a dashboard with sample instant data flow?
by pictur 5y ago
is web worker really good for some costly processes? would it really be useful for a dashboard with sample instant data flow?
- hotz 5y agoWe used web workers to shift a lot of processing off of the main thread. They helped in keeping the UI feeling responsive and less laggy.
- wackget 5y agoWhat kind of processing do you mean? Unless you're developing a game or a media player, I can't think of a good example where processing might delay the UI.
- Klaster_1 5y agoDepends what's on the dashboard and how the data has to be transformed for display. I've worked on several such dashboards and never had to use Web Workers to solve the performance issues, these were usually caused by UI rendering not optimized for loads of data. Now, the workers can help with rendering too, for example to render a chart off the main thread, but the libraries that support this usually hide the worker magic behind an API.