I have implemented importer that use PLINQ to improve import.
var result = fileIds.AsParallel()
.Select(a => a.Guid)
.Select(GetUserFile)
//cannot use PLINQ anymore, because their are some
//static properties/fields that will be overwritten by each thread
.ToList()
.Select(ExtractData)
.SelectMany(a => a)
.Where(HasEntry)
.ToList();
Just want to mention this. The project is not maintaining anymore.
var result = fileIds.AsParallel()
.Select(a => a.Guid)
.Select(GetUserFile)
//cannot use PLINQ anymore, because their are some
//static properties/fields that will be overwritten by each thread
.ToList()
.Select(ExtractData)
.SelectMany(a => a)
.Where(HasEntry)
.ToList();
Just want to mention this. The project is not maintaining anymore.