|
|
|
|
|
by cm2187
2692 days ago
|
|
Though my understanding is that if you do something like this: var a = new double[10000]; var b = a.Select(x=>x*x).ToArray(); I'd expect LINQ to create a List or a similar structure when executing the select, then copy the output to the final array. If you were operating on two arrays directly, I would expect less memory allocations (unless these things get optimized away). |
|