“Nested foreach” vs “lambda/linq query” performance(LINQ-to-Objects) [closed]
Write the clearest code you can, and then benchmark and profile to discover any performance problems. If you do have performance problems, you can experiment with different code to work out whether it’s faster or not (measuring all the time with as realistic data as possible) and then make a judgement call as to whether … Read more