4 ms·
I don't understand what it does and why. What kind of DOM computations are so intensive they need to be parallel? Most intensive computations are done in JS,
by XCSme 2y ago
I don't understand what it does and why.
What kind of DOM computations are so intensive they need to be parallel?
Most intensive computations are done in JS, which is not related to the DOM and can be ran in Web Workers if you need parallel execution.
- candiddevmike 2y agoFurthermore, how can a racey multi threaded DOM end well? AFAIK, most GUI rendering in apps is single threaded.
- ashubham 2y agoI assume you meant "race conditions" when you say "racey multithreaded DOM". The multithreaded part here is still isolated in its own context (iFrame), you should never have a race condition with your main DOM thread.
- dgfitz 2y agoI don’t know if I agree with that last bit. “Don’t do work on the gui thread” is basically a mantra. It’s also not very effective to show a progress bar in a gui unless you don’t mind the rest of the gui to be unresponsive.
- ashubham 2y agoHeavy data visualizations, interactive infographics etc. Also, if your app has the capability to run third party plugins you generally want to run it in a separate context for security reasons. With PDom, you also isolate yourself from the perf implication the 3rd pary code may have.
- XCSme 2y ago> Heavy data visualizations, interactive infographics etc If they are so heavy, shouldn't the vizualization be WebGL? The DOM is for hierarchical information.
- ashubham 2y agoThere are no good webGL charting libraries. SVG is the gold standard as the fidelity is way higher. No one wants to look at charts which look like science experiments.
- kreetx 2y agoWhat are "third party plugins" in this context?
- ashubham 2y agoLet's say your application supports a plugin marketplace where community can build plugins for your app. For eg, a testrail plugin for JIRA or a diagramming plugin on Google Docs. You would want to run these plugins in their own DOM so that they don't accidentally slow down the main app.
- rozap 2y agoI'm wondering the same thing. It seems like it'll primarily be used as a bandaid for poorly written applications to run slightly less slowly. Lovely, now some garbage page can hog more of my CPU, this is exactly what I wanted.