Difference linq and plinq

前端 未结 5 663
旧巷少年郎
旧巷少年郎 2020-12-11 04:20

What is the difference between these two?

What is the best way to compare ?

It is always better plinq ?

When we use plinq ?

5条回答
  •  借酒劲吻你
    2020-12-11 04:52

    PLinq is the parallel version of Linq. Some queries can be executed on multiple threads and then PLinq gives a performance increase.

    However other queries can´t be executed in parallel or will give wrong results if done so. So when to use PLinq is something you should decide on for each query and make sure the performance actually increases.

    MSDN has a lot of documentation on it.

提交回复
热议问题