2

Motivation: I'm working on an app which some parts of it renders multiple times a second, and may in some cases perform heavy rendering. I would like it to give user action priority over everything else, even in those heavy rendering cases.

I've learn that that react 16 schedule algorithm (also known as React Fiber)

  1. Split the work handed to the main thread into chunks, preventing overload which can prevent the main thread from rendering UI.
  2. Offer a way to give a specific tasks (like user action) different priority, so it will be treated before lower-priority tasks.

Is there an angular mechanism which provide both of these features?

(I assume that ngrx can provide some advantages, as all actions/events are asynchronous, so the second feature is more critical for my case)

yuval.bl
  • 4,890
  • 3
  • 17
  • 31
  • Instead of comparing Angular and React, please specify what is your goal. If it is performance, Angular has many performance utilities (e.g. lazy-loading). –  Sep 06 '18 at 09:57
  • I'm working on an app which some parts of it renders multiple times a second, and may in some cases perform heavy rendering. I would like it to give user action priority over everything else, even in those heavy rendering cases. – yuval.bl Sep 06 '18 at 14:18
  • Action priority over the rendered parts, or over the whole application ? –  Sep 06 '18 at 14:19
  • both, but rendering is my main concern. – yuval.bl Sep 06 '18 at 14:21
  • What are the rendered parts ? HTML contents, SVGs, 3D ... ? –  Sep 06 '18 at 14:21
  • It may contain different parts, mostly html-based components / UI libraries components, SVGs and canvas -based components. – yuval.bl Sep 06 '18 at 14:49

0 Answers0