Why shouldn't I use F# asynchronous workflows for parallelism?

后端 未结 3 709
执念已碎
执念已碎 2021-01-31 19:41

I have been learning F# recently, being particularly interested in its ease of exploiting data parallelism. The data |> Array.map |> Async.Parallel |> Async.RunSy

3条回答
  •  囚心锁ツ
    2021-01-31 20:17

    I always figured it's what TPL, PLinq etc... give you over and above what Async does. (Cancellation mechanisms is the one that comes to mind.) This question has some better answers.

    This article hints at a slight performance advantage to TPL, but probably not enough to be significant.

提交回复
热议问题