When should I use Compiled LINQ vs Normal LINQ

I just read about LINQ performance, and there is a huge amount you can get with Compiled LINQ.

Now, why don't I always use compiled LINQ?

+4
source share
2 answers

Short answer: when it happens only once for a long time.

Long Answer .

+3
source

You should use it when some kind of linq query is executed most of the time. They can be converted to compiled lynq. Performance will be improved since the query execution path will be set at compile time. I used it in my project, and the performance climbed by notches.

0
source

Source: https://habr.com/ru/post/1276315/


All Articles