Great content, the difference between this and await Task.When all is that as Parallel is better to use with heavy and few computation, and task.whenall is better for "parallel" i/o operations?
This is great. I'm love using LINQ and this will certainly help make more performant LINQ queries. I assume Parallel foreach loops are still faster? Though the difference is probably smaller compared to sequential LINQ and foreach. What is the performance impact for ordering? Since .AsParallel() doesn't necessarily use Parallelism, do you recommend to add it to any LINQ-Query by default? Though if that were the case, Microsoft probably would've implemented it that way anyways.
Most of the time my "heavy computation" is async. Or I have many small operations which I need to use on the collection. How would I do that with PLINQ?
PLINQ is best suited for long-running CPU-bound operations. If you’re dealing with many small operations or asynchronous computations (sending HTTP requests for example) then async await with Task.WhenAll is a better choice over PLINQ
can we alternate between threads with PLINQ, like one method print "ping" the other print "pong" and get an output : "ping pong ping pong ping pong ..." ? thanks for the video :D
What do you mean by the sentence do you a favor and don't use pink in your applications because you need to be familiar with how things work under the hod ?
Adding "AsParallel" without knowing how PLINQ works will likely introduce bugs or make your code even slower. It's important to understand how PLINQ actually works to know how to use it correctly.
Great content, I've learned a little more today. Thank you!
Really great description for plinq, thanks
what is the .Dump() method references from? thanks!
עבודה מעולה!
Thank you. It is great video.
Highly informative! Excellent job!
Great content, the difference between this and await Task.When all is that as Parallel is better to use with heavy and few computation, and task.whenall is better for "parallel" i/o operations?
Async await is for IO. Parrallel, Task.Run is for cpu bound.
Very good video. Thank you.
Nice tutorial😀 great effort keep up good work, could you please share the how to do the environment set up like you did for visual studio code
This is great. I'm love using LINQ and this will certainly help make more performant LINQ queries. I assume Parallel foreach loops are still faster? Though the difference is probably smaller compared to sequential LINQ and foreach.
What is the performance impact for ordering?
Since .AsParallel() doesn't necessarily use Parallelism, do you recommend to add it to any LINQ-Query by default? Though if that were the case, Microsoft probably would've implemented it that way anyways.
Thanks for this video Amichai, btw what's your tool to print on your screen boxes with arrows in colors with your mouse and keyboard ?
Presentify
Great, thanks!
Nice. It's time to create video for Task, await, cancellation token, asyn void, confiureawait false 😅😊🙏
Nice. What if the HeavyComputation is Task based or ValueTask based? Is PLinq still the right way to go?
Most of the time my "heavy computation" is async. Or I have many small operations which I need to use on the collection.
How would I do that with PLINQ?
PLINQ is best suited for long-running CPU-bound operations. If you’re dealing with many small operations or asynchronous computations (sending HTTP requests for example) then async await with Task.WhenAll is a better choice over PLINQ
this is probably a dumb question but... can you use P LINQ AND SIMD LINQ together?
can we alternate between threads with PLINQ, like one method print "ping" the other print "pong" and get an output : "ping pong ping pong ping pong ..." ? thanks for the video :D
If you need to maintain a specific order then you can use AsOrdered
how to scaffold test project to test all this ?
thx :)
What do you mean by the sentence do you a favor and don't use pink in your applications because you need to be familiar with how things work under the hod ?
Adding "AsParallel" without knowing how PLINQ works will likely introduce bugs or make your code even slower. It's important to understand how PLINQ actually works to know how to use it correctly.
What is this dump() extension method?
It’s a convenient way to print objects to the console. Check out the package Dumpify