Questions tagged [plinq]

PLINQ is a parallel query execution engine for LINQ. PLINQ supports the data parallelism pattern by adding additional syntax to allow queries to be declared as running in parallel.

PLINQ is a parallel query execution engine for . PLINQ supports the data parallelism pattern by adding additional syntax to allow queries to be declared as running in parallel.

Related Links

365 questions
0
votes
0 answers

Correct use of ForAll in PLINQ

I have a code which iterate through a list retrieved by a LINQ and created a new object list with some added properties. I want to improve performance by using PLINQ and ForAll(). I tried the following; Dim RetrieveList_Qry = From Prod In…
voddy
  • 950
  • 1
  • 11
  • 21
0
votes
3 answers

process files in parallel C#

I have this code which reads all words from the files and assigns ID to each unique word and adds it to a Dictionary. I need to make it run in parallel to increase efficiency of the application. I have tried using Parallel.ForEach instead of foreach…
Eimantas Baigys
  • 147
  • 2
  • 4
  • 19
0
votes
2 answers

Select nonNullable values of nullable property from collection of objects with PLINQ

Why when i use Plinq in query such as var notNullParameterValues = (from operation in operations.AsParallel() where operation.NullableParameter.HasValue select operation.NullableParameter.Value) …
Roman G.
  • 182
  • 12
0
votes
1 answer

Using AsParallel() and/or Parallel.ForEach on a virtual machine

Our web app is hosted on a virtual machine with 8 vCPUs. We have an intensive data operation that runs on a nightly schedule (console app / windows task scheduler) which I'd like to parallelize somehow. The operation iterates many times over many…
notAnonymousAnymore
  • 2,637
  • 9
  • 49
  • 74
0
votes
1 answer

PLINQ and the logical processors

My system's configuration is this: Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz, 2694 Mhz, 4 Core(s), 8 Logical Processor(s) You may notice that my machine has 4 cores and 8 logical processors. If I'm going to use a PLINQ query to take advantage of the…
wonderful world
  • 10,969
  • 20
  • 97
  • 194
0
votes
1 answer

How PLINQ is better than traditional threading?

Currently I have n suppliers web service which gives me search result for particular product. I am creating n threads myself and merging the final results returned by supplier. I have just come to know about PLINQ. I want to know if it would help…
Adarsh Kumar
  • 1,134
  • 7
  • 21
0
votes
1 answer

PLINQ result is wrong and varies in different run

I am learning PLINQ. I tried on example given on a site. However I can see that the result is wrong and also varies when I re-run the program many times. First it does not gives all prime numbers and second it gives only 9591 random prime…
Adarsh Kumar
  • 1,134
  • 7
  • 21
0
votes
1 answer

using PLINQ or Parallel with keeping original order

I have a large collection of elements. I want to call ToString for each element and build one string. My first approach was to slow string str = ""; list.ForEach( g => { string s = g.ToString(); if(s != "") …
gerstla
  • 587
  • 1
  • 5
  • 20
0
votes
1 answer

PLINQ WithDegreeOfParallelism Delay?

I want to execute a network based task (with a possible long timeout) on multiple peers simultaneously. So i have the following code: Parallel.ForEach(hosts, i => SomeLongRunningNetworkTask(i)); I noticed that from the sixth task on the execution…
0
votes
1 answer

Parallel Foreach webservice call

We have implemented application wherein we need to process incoming batch. for example a set of Request of certain object type has to be sent to particular webservice to have it processed We have implemented following snippet to do so. need your…
Sarav
  • 117
  • 1
  • 13
0
votes
2 answers

How to speed up this algorithm?

This counting method is quite slow in one unit test. Can it be improved, perhaps by parallelisation? Edit: To be clear, I can't change the calendar interface or the implementations. I'm interested in the counting algorithm. public static int…
Colonel Panic
  • 132,665
  • 89
  • 401
  • 465
0
votes
1 answer

PLinq and Object Pooling using ConcurrentCollections

I have a method that has to iterate over a large set of data and returned the processed results to a consumer thread for serialization. Streaming PLinq fits best performance-wise. Because these operations are frequent, i am using an objectpool to…
anchandra
  • 1,089
  • 12
  • 23
0
votes
0 answers

Make a requests funnel in Parallel.ForEach statement

What I have: Remote API that allow to make one request in the second Need to request this API on behalf of different users (with different tokens) in same time I have a some kind of this code: Parallel.ForEach(accounts, currentAccount => { …
Evgeniy Labunskiy
  • 2,012
  • 3
  • 27
  • 45
0
votes
1 answer

PLINQ and Large Data Searching

I was looking for validation that what I'm thinking is an ideal solution. I have a list of several million 'entities' coming from a customer. I want to compare each entity to another (or several other) list/s that can have millions of entities, and…
Jonesopolis
  • 25,034
  • 12
  • 68
  • 112
0
votes
1 answer

How to Optimize Performance for a Full Table Update

I am writing a fairly large service centered around Stanford's Folding@Home project. This portion of the project is a WCF service hosted inside of a Windows Service. With proper database indices and a dual core Core2Duo/7200rpm platter I am able…
Kenny
  • 129
  • 2
  • 11