On 5/20/2014 1:58 PM, Eli Grey wrote:
In practice, this is what parallel applications *currently* do as they have no other choice without this API. The OS scheduler can handle balancing the load fine to keep your system responsive, but it can't optimize your algorithm to more efficiently take advantage of CPU resources. Using "workers = 8" will result in worse performance on a dual-core machine than an octa-core machine, but you are right that it will still work.
And what's the difference between a 2-core machine and an 8-core machine that has a high-priority constant load that is taking up 6 of those cores? Why should developers optimize their programs for the first case but not also the second case?
I don't think this is esoteric: my main development modality is typically to do fun web browsing while I'm running a computationally-intensive program.
-- Joshua Cranmer Thunderbird and DXR developer Source code archæologist _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform