Stream: t-compiler/wg-parallel-rustc

Topic: alternatives to rayon


nikomatsakis (Nov 19 2019 at 16:23, on Zulip):

We've discussed on and off the idea of not using rayon here but having our own, simpler scheduling strategy. What does that maybe look like?

simulacrum (Nov 19 2019 at 17:29, on Zulip):

I think we'd still want a thread pool of some sort, since thread spawning is pretty expensive, though maybe it's not yet worth it. Then in the few locations we've already identified we'd want to do something like this I imagine, which would internally spawn up num_cpus - 1 threads and run as needed on them

tcx.parallelize(&some_vector, |element| {
 // ...
});
Last update: Dec 12 2019 at 01:25UTC