Is it OK to try to use Plinq in all Linq queries?
问题 I read that PLinq will automatically use non parallel Linq if it finds PLinq to be more expensive. So I figured then why not use PLinq for everything (when possible) and let the runtime decide which one to use. The apps will be deployed to multicore servers and I am OK to develop a little more code to deal with parallelism. What are the pitfalls of using plinq as a default? 回答1: One pit fall is you lose the ability to leverage ordering in sets. Take the following code: var results = new int {