DEV Community

Discussion on: Using Extension Methods in C# to Build Fluent Code

Collapse
 
integerman profile image
Matt Eland

I use LINQ by default. However, I did find while profiling a roguelike's core AI routines that LINQ significantly added to the duration of the application. However, this was a core routine in a genetic algorithm that had to run millions of times.

My suggestion would be to go with LINQ until your data tells you to avoid it in key places, then make those optimizations.