When should I use Compiled LINQ vs Normal LINQ
-
08-06-2019 - |
Question
I just read up on a performance of LINQ, and there is a HUGE amount to be gained by using Compiled LINQ.
Now, why won't I always use compiled LINQ?
Solution
Short answer: when it's only going to happen once in a long time.
OTHER TIPS
You should use it when some linq query is executing most of the time. Those can be converted to compiled lynq. Performance will be improved as execution path of query will be set at compile time. I used it in my project and performance went up a notched.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow