rustc-dev-guide icon indicating copy to clipboard operation
rustc-dev-guide copied to clipboard

Parallel rustc

Open nikomatsakis opened this issue 7 years ago • 2 comments

As @Zoxc's work to [parallelize rustc] starts to land, we need to start documenting it!

Some example topics:

  • Copy some of the text from the internals thread as to the overall strategy
  • What the heck is Lrc? When should I be using it?
  • What do I use when I want a ref cell?

nikomatsakis avatar Mar 09 '18 11:03 nikomatsakis

Perhaps a good starting point might be https://github.com/nikomatsakis/rustc-parallelization/blob/master/interior-mutability-list.md and the discussion in https://internals.rust-lang.org/t/parallelizing-rustc-using-rayon/6606/24

mark-i-m avatar Mar 09 '18 19:03 mark-i-m

#1432 adds the use of thread-safe data structures and parallel iterators, and corrects some statements in other parts. In addition, the reason for using the fork version of rayon needs to be added to the documentation.

SparrowLii avatar Aug 26 '22 02:08 SparrowLii