RSSAmplifier

omervk.com · May 27, 2008

LINQ Performance Pitfall – Deferred Execution

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

When using LINQ, queries may bloat up to dozens of lines. My personal style is to take these queries and break them apart to smaller units of logic. To each unit of logic, I append a call to ToArray. @yosit asked me why I did it and I answered I was avoiding a possible pitfall. Here’s what I meant…. 
 You can read the copy of the original post , or if that goes down too, you can try the…

Read on /posts/2008-05-27-linq-performance-pitfall-deferred-execution/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.