LINQ orderby vs IComparer
问题 I would like to know what is better to use. IComparer class and Compare method for sort or LINQ orderby on List. Both works fine but which one is better for large lists. 回答1: I would choose LINQ for two reasons. LINQ queries are generally shorter and easier to read. If you really do have a large number of elements, Linq also gives you the ability to scale out to multiple CPU cores by using PLinq, which might help you out significantly. I would expect performance to be roughly similar for a