Search code examples
angularweb-worker

Slow web worker rendering in angular2 ?


I have a list of items which are rendered fast normally (~30 records). But the same list if I render it from web worker is very slow, I can see visually how the elements are painted...

If I check the MessageBroker messages I can see that lot of messages are travelling from the web worker to the UI like createText, createElement, setElementClass etc.

Is it normal that it is that slow rendered from Web Worker, but working fine in normal rendering?


Solution

  • There is an open issue and someone mentioned that Angular2 using WebWorker becomes much faster when events are processed sync.

    See also