On a LINQ-result you like this:
var result = from x in Items select x;
List<T> list = result.ToList<T>();
However, the ToList<T>
is Really Slow, does it make the list mutable and therefore the conversion is slow?
In most cases I can manage to just have my IEnumerable
or as Paralell.DistinctQuery
but now I want to bind the items to a DataGridView, so therefore I need to as something else than IEnumerable
, suggestions on how I will gain performance on ToList or any replacement?
On 10 milion records in the IEnumerable
, the .ToList<T>
takes about 6 seconds..