What is the Efficiency and Performance of LINQ and Lambda Expression in .Net?

后端 未结 6 1553
粉色の甜心
粉色の甜心 2020-11-27 12:46

I have used .Net 3.5 and VS 2008 for more than a month. Like most .Net developers, I have evolved from years experience in .Net 1.0 & 2.0 and VS 2005. Just recently, I d

6条回答
  •  伪装坚强ぢ
    2020-11-27 13:41

    In some cases LINQ is just as fast if not faster than other methods, but in other cases it can be slower. We work on a project that we converted to linq and the data lookup is faster but the merging of data between two tables is much slower. There is a little overhead, but in most cases I don't see the speed difference having much effect on your program.

提交回复
热议问题