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
2 answers

Issues with de serializating PLINQO objects in C#

I have tried many ways to deserialize LINQO objects but every method failed. Here is an example of the last code. System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); DataContractJsonSerializer ser = new…
TD
0
votes
1 answer

Is it a typo in MSDN aticle about 10 first items ordered in PLINQ query or..?

The MSDN article "Order Preservation in PLINQ" states: The following example overrides the default behavior by using the AsOrdered operator on the source sequence. This ensures that the Take method returns the first 10 cities in the source sequence…
Fulproof
  • 4,466
  • 6
  • 30
  • 50
0
votes
3 answers

How does PLINQ Order input

If I have the following order in an IEnumerable (list) : 1 - 2 - 3 - 4 - 5 and If I run a PLINQ query on this say : list.AsParallel().AsOrdered().WithDegreeOfParallelism(10).Select( s =>…
Murtaza Mandvi
  • 10,708
  • 23
  • 74
  • 109
0
votes
1 answer

Parallel Linq query fails to execute

Hello I have just started to try and understand Parallel Linq and with my first attempt I am having no success. I am using EF 4.0 and a repository pattern class that I created to query the data. I don't believe that the repository pattern is the…
cjohns
  • 1,520
  • 2
  • 14
  • 21
0
votes
1 answer

PLINQ problem / techniques to impliment multi-threaded, lock-free lists (in C#)

Here's the code in question: parentNodes.AsParallel().ForAll(parent => { List plist = parent.Field.GetValidOrientations(pieceQueue[parent.Level]); plist.ForEach(p => { …
0
votes
1 answer

.NET parallel LINQ equivalent in Ruby

I want to be able to do something like this in Ruby: (new[]{"http://google.com", "http://facebook.com", "http://microsoft.com", "http://twitter.com", "http://stackoverflow.com"}) .AsParallel() .Select(q => WebRequest.Create(q).GetResponse()) This…
Vasaka
  • 579
  • 6
  • 17
0
votes
1 answer

PLINQ query, need to know how many iterations performed

what I'm basically doing is iterating in parallel over a sequence of letter combinations, when I get the combo I want it's considered a win. I want to get all the wins from this query (which it's doing correctly), but the trick has been how to keep…
Mark W
  • 3,879
  • 2
  • 37
  • 53
0
votes
1 answer

Performance Linq

Today I tested the performance impacts of Linq and PLinq querys. Therefore I used the article on msdn How to: Measure PLINQ Query Performance. void Main() { var source = Enumerable.Range(0, 600000000); System.Diagnostics.Stopwatch…
Florian
  • 380
  • 3
  • 20
0
votes
1 answer

partition data into chunks and then assure thread safety

i'm writing some code that basically receive data from socket, perform deserialization and then passed to my application.the deserialized objects can be grouped by their id's (the id is being generated during the deserialization process). to…
Tzahi
  • 129
  • 1
  • 8
0
votes
1 answer

How to use parallel linq when two enumerables need to be combined

I have two enumerables that I would like to use with PLINQ, how do I combine them correctly? Here they are: List messageList=...; IEnumerable lineNums=Enumerable.Range(1,messages.Count); IEnumerable messages=messageList; In…
Michael Goldshteyn
  • 71,784
  • 24
  • 131
  • 181
0
votes
1 answer

Using Model First, how do I pre-load a junction table for fast, sub-second joins?

I want to do fast, sub-second joins across a few tables using the Entity Framework (model first). The simplified data model is similar to the following: Videos: ID (Primary Key); Name Tags: ID (Primary Key); Name TaggedVideos: TagID (FK); VideoID…
James
  • 954
  • 2
  • 13
  • 27
0
votes
1 answer

Using Partitioner with PLINQ in F#

I use the following PLINQ-implemented parallel map function. let parmap f (xs:list<_>) = xs.AsParallel().Select(fun x -> f x) |> Seq.toList I want to improve my speedup on 4 cores which I'm not able to get above 2. I found one can do custom…
vis
  • 2,279
  • 1
  • 19
  • 27
0
votes
2 answers

IEnumerable PLINQ yield

I have a function which returns IEnumerable which iterates objects in Inbox through MAPI, but its relatively slow, so i'm going to create a pool of connections and use them in multi-threaded fashion. Is it possible to use PLINQ in the thousands of…
Oleg Skripnyak
  • 301
  • 2
  • 13
-1
votes
1 answer

error textBox3 ACCESSED FROM A THREAD OTHER THAN THE THREAD IT WAS CREATED ON while executing Plinq query

i have a method in another class that select all the lines that contains given char from textbox2,and print it to textbox3 on button_click but i'm having this error (textBox3 ACCESSED FROM A THREAD OTHER THAN THE THREAD IT WAS CREATED ON). public…
Mhd Azhar
  • 27
  • 3
-1
votes
1 answer

Different results when measuring .AsParallel()

My issue, which it seems I couldn't find an answer is that: why if I change the order of calling a method which contains .AsParallel() and one that doesn't contain, or has different options the result is different. I've put the source code on GitHub…
Mircea Mihai
  • 167
  • 1
  • 13
1 2 3
24
25