Click here to Skip to main content
15,885,546 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 1:00
mvahoney the codewitch9-Feb-21 1:00 
GeneralRe: Unpopular opinions: LINQ Pin
Sander Rossel9-Feb-21 2:08
professionalSander Rossel9-Feb-21 2:08 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:14
mvahoney the codewitch9-Feb-21 2:14 
GeneralRe: Unpopular opinions: LINQ Pin
Sander Rossel10-Feb-21 0:08
professionalSander Rossel10-Feb-21 0:08 
GeneralRe: Unpopular opinions: LINQ Pin
r_hyde8-Feb-21 12:24
r_hyde8-Feb-21 12:24 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 14:27
mvahoney the codewitch8-Feb-21 14:27 
GeneralRe: Unpopular opinions: LINQ Pin
Super Lloyd8-Feb-21 13:32
Super Lloyd8-Feb-21 13:32 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 14:21
mvahoney the codewitch8-Feb-21 14:21 
Assuming PLINQ's implementation is not terrible, you're probably incurring locking overhead. It doesn't make sense to try to use any kind of parallelization in the following scenarios

a) your problem has interdependent components such that you can't decouple the work done by B from the result of A and C depends on the result of both, so you're elephanted.

b) it doesn't do you a heck of a lot of good to query the same source in parallel with itself. It's hard to give you a good example in PLINQ but you want parallel op A to use a different datasource than B. In an RDBMS this principle is easier to understand. If I run a join across two tables, i don't have a lot i can do to make it parallel *unless* each table is on a separate drive ("spindle" in DB parlance) meaning the read operations of table A aren't dependent on waiting for read operations from B since they are different drive controllers working in parallel. The same basic idea would apply to PLINQ

If a or b are an issue, you'll probably end up incurring more overhead than you gain in throughput
Real programmers use butterflies

GeneralRe: Unpopular opinions: LINQ Pin
Super Lloyd8-Feb-21 14:31
Super Lloyd8-Feb-21 14:31 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 14:41
mvahoney the codewitch8-Feb-21 14:41 
GeneralRe: Unpopular opinions: LINQ Pin
Kiriander8-Feb-21 20:26
Kiriander8-Feb-21 20:26 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 1:06
mvahoney the codewitch9-Feb-21 1:06 
GeneralRe: Unpopular opinions: LINQ Pin
Kiriander23-Feb-21 22:52
Kiriander23-Feb-21 22:52 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch24-Feb-21 2:00
mvahoney the codewitch24-Feb-21 2:00 
GeneralRe: Unpopular opinions: LINQ Pin
Kiriander2-Mar-21 4:50
Kiriander2-Mar-21 4:50 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet8-Feb-21 22:26
professionalafigegoznaet8-Feb-21 22:26 
GeneralRe: Unpopular opinions: LINQ Pin
Peter Adam8-Feb-21 23:18
professionalPeter Adam8-Feb-21 23:18 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 2:28
MeziLu9-Feb-21 2:28 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:29
mvahoney the codewitch9-Feb-21 2:29 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 2:39
MeziLu9-Feb-21 2:39 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:47
mvahoney the codewitch9-Feb-21 2:47 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 2:56
MeziLu9-Feb-21 2:56 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 3:05
MeziLu9-Feb-21 3:05 
GeneralRe: Unpopular opinions: LINQ Pin
MeziLu9-Feb-21 2:52
MeziLu9-Feb-21 2:52 
GeneralRe: Unpopular opinions: LINQ Pin
Member 140926059-Feb-21 2:31
Member 140926059-Feb-21 2:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.