Linq works faster ?
How Linq query works faster than foreach/for loop ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hassan Uddin MughalPosted May 24, 2017, 1:59 AM
Most of the times, LINQ will be a bit slower because it introduces overhead. Do not use LINQ if you care much about performance. Use LINQ because you want shorter better readable and maintainable code. LINQ might be get faster at some point. The good thing about LINQ is that that you don't have to care about how it works. If a new method is thought up that's incredibly fast, the people at Microsoft can implement it without even telling you and your code would be a lot faster. More importantly though, LINQ is just much easier to read. That should be enough reason.