3 ms·
A quote from Brian Goetz which reminds us of the reasons not all code benefits from being run in parallel: "A parallel execution always does more work than a s
by sgift 10y ago
A quote from Brian Goetz which reminds us of the reasons not all code benefits from being run in parallel:
"A parallel execution always does more work than a sequential one, since — in addition to solving the problem — it also must decompose the problem, create and manage tasks to describe the subproblems, dispatch and wait for those tasks, and merge their results. So the parallel execution always starts out "behind" the sequential one and hopes to make up for the initial deficit through economy of scale."
https://www.ibm.com/developerworks/library/j-java-streams-4-brian-goetz/ https://www.ibm.com/developerworks/library/j-java-streams-4-...
But even then, your point stands that being able to work while the web worker version is running makes it better even if it is slower.