plinq Questions

3

Solved

The more I use Parallel.ForEach and PLINQ in my code, the more faces and code review push backs I am getting. So I wonder is there any reason for me NOT to use PLINQ, at extreme, on each LINQ state...
Cilurzo asked 25/3, 2012 at 3:59

2

Solved

For some time now I've been structuring my code around methods with no side-effects in order to use parallel linq to speed things up. Along the way I've more than once stumbled on lazy evaluation m...
Periphrasis asked 4/2, 2012 at 4:58

4

It is not possible to set an entire .net application to another culture other than the user profile-culture in .net. The appropriate way to control cultureinfo seems to be using the dedicated metho...

1

Solved

On page 33 of Stephen Toub's book http://www.microsoft.com/download/en/details.aspx?id=19222 There is the code var pings = from addr in addrs.AsParallel().WithDegreeOfParallelism(16) select ne...
Parrish asked 20/1, 2012 at 11:38

1

Solved

I loop over an array of connection strings and on each loop I extract some information and add to the list. Now, I want to use Parallel library to make it multithreaded, but I'm not sure if the lib...

5

Solved

I'm building a console application that have to process a bunch of data. Basically, the application grabs references from a DB. For each reference, parse the content of the file and make some chan...

2

Solved

Let's say I have two sequences returning integers 1 to 5. The first returns 1, 2 and 3 very fast, but 4 and 5 take 200ms each. public static IEnumerable<int> FastFirst() { for (int i = 1; ...
Metallo asked 9/11, 2011 at 13:25

1

How can I diagnose and minimize or prevent AppDomainUnloadedException? NUnit 2.5.2 consistently throws AppDomainUnloadedException after long (>10s) tests involving PLINQ. Back in July 2008, Step...
Auburn asked 27/8, 2009 at 10:28

3

I have a very simple question. Is it possible to use PLINQ with Silverlight 4 since it seems that it doesn't exist in the most commonly referenced assemblies?
Flack asked 27/4, 2010 at 2:29

3

Solved

Update - changed the title of the question to reflect what I'm really after Consider the following piece of code: // this query generates 12 instances of Func<int>, which each when executed...
Tugman asked 27/7, 2011 at 11:51

1

Solved

I think the question is clear. PLinq doesn't allow you to create more than 63 threads (WithDegreeOfParallelism doesn't allow it, throws ArgumentOutOfRangeException). In rare situations, we need to ...
Manure asked 14/5, 2011 at 16:16

3

Solved

I have a file collection (3000 files) in a FileInfoCollection. I want to process all the files by applying some logic which is independent (can be executed in parallel). FileInfo[] fileInfoCollec...
Okubo asked 11/5, 2011 at 8:32

2

Can somebody explain me one thing. As I understand AsParallel() executes in own task. So, if query return huge amount of data the variable 'd' can be empty at time when 'foreach' started to execute...
Arthralgia asked 4/5, 2011 at 15:45

3

Solved

I came across this situation where the following plinq statement inside static constructor gets deadlocked: static void Main(string[] args) { new Blah(); } class Blah { static Blah() { Enumer...
Medora asked 24/4, 2011 at 12:27

3

Solved

It doesn't seem to do squat for the following test program. Is this because I'm testing with a small list? static void Main(string[] args) { List<int> list = 0.UpTo(4); Test(list.AsParall...
Eldwin asked 28/11, 2009 at 14:25

2

Solved

Summary: I changed from System.Threading.Tasks.Parallel.ForEach and Concurrent Data structure to a simple plinq (Parallel Linq) query. The speed up was amazing. So is plinq inherently faster than...
Whitehurst asked 4/3, 2011 at 16:9

1

Solved

let's say I have a big List List<long> longList = new List<long>(10000000) And I want to do the following query: bool found = longList.Contains(4345235234524245124L); Is there a w...
Coltin asked 7/2, 2011 at 14:59

1

Solved

I want to use TPL in Worker process on Windows Azure. I'm looking to add an IJob the queue, this has a Run method, so the worker will consist of: loop get item off queue Use TPL to call IJob.Run...

1

Solved

Is PLINQ guaranteed to return query results in the order of the original sequence being operated on, even if results are produced in parallel? For instance: new List<String>(){"a", "b", "c",...
Rootlet asked 6/1, 2011 at 23:36

2

I realized that when I am trying to process items in a concurrent queue using multiple threads while multiple threads can be putting items into it, the ideal solution would be to use the Reactive E...
Blink asked 13/6, 2010 at 0:47

2

I'm looking make use of the advantages of parallel programming in linq by using plinq, im not sure I understand the use entirely apart from the fact its going to make use of all cpu cores more effi...
Crystlecs asked 12/11, 2010 at 10:59

2

Solved

I am using the parallel data structures in my .NET 4 application and I have a ConcurrentQueue that gets added to while I am processing through it. I want to do something like: personqueue.AsParal...
Perigee asked 8/6, 2010 at 13:43

2

Solved

I'm doing like this: entities.AsParallel().ForAll(o => repository.Insert(o)); is this good, am I going to have more performance with this ?
Moisten asked 20/7, 2010 at 13:22

1

I read that PLinq will automatically use non parallel Linq if it finds PLinq to be more expensive. So I figured then why not use PLinq for everything (when possible) and let the runtime decide whic...
Grundy asked 23/5, 2010 at 21:55

3

Solved

I started using LINQ (Language Integrated Query) when it was still in beta, more specifically Microsoft .NET LINQ Preview (May 2006). Almost 4 years have passed and here we are using LINQ in ...
Stoush asked 8/3, 2010 at 1:33

© 2022 - 2024 — McMap. All rights reserved.