I have IEnumerable collection as shown below. this is collection of collection. Main collection has 10 items and each item has 100k items.
My CPU has 6 cores, 24GB RAM, 1.5TB hard disk. 3 user does the remote desktop.
IEnumerable<AFValues> afValues = listAvgResults.Select(pointResults => pointResults[type]);
when i use Parallel.ForEach it took 9.8 and foreach took 10 sec.
MTObservableCollection<VesselData> vesselList = new MTObservableCollection<VesselData>();
Parallel.ForEach(afValues, pointValues =>
{
vesselList.Add(row);
});
Thanks