タグ

ブックマーク / smallcultfollowing.com (1)

  • Rayon: data parallelism in Rust · baby steps

    Of course, part of making parallelism easy is making it safe. Rayon guarantees you that using Rayon APIs will not introduce data races. This blog post explains how Rayon works. It starts by describing the core Rayon primitive (join) and explains how that is implemented. I look in particular at how many of Rust’s features come together to let us implement join with very low runtime overhead and wit

    Nnwww
    Nnwww 2017/04/27
    rayonのプリミティブは2つの直列な処理の後半をwork-stealingの候補として預けて前半を処理、その間に後半が盗まれたかどうかで処理を変える仕組み。プロセッサに適応的な並列化を実現する
  • 1