Making LINQ Blazing fast with PLINQ (Parallel LINQ) | .NET & C# Essentials

  Рет қаралды 22,146

Amichai Mantinband

Amichai Mantinband

Күн бұрын

Пікірлер: 28
@jerrydsta1056
@jerrydsta1056 8 ай бұрын
what is the .Dump() method references from? thanks!
@Silky987
@Silky987 9 ай бұрын
Great content, I've learned a little more today. Thank you!
@vitaliiodiichuk5317
@vitaliiodiichuk5317 8 ай бұрын
Really great description for plinq, thanks
@juniorcode41
@juniorcode41 3 ай бұрын
Thank you. It is great video.
@alfonsdeda8912
@alfonsdeda8912 9 ай бұрын
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?
@andreysemykin5879
@andreysemykin5879 9 ай бұрын
Async await is for IO. Parrallel, Task.Run is for cpu bound.
@kesavanarayanaanaparthi6428
@kesavanarayanaanaparthi6428 8 ай бұрын
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
@Linkario86
@Linkario86 9 ай бұрын
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.
@Dustyy01
@Dustyy01 9 ай бұрын
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?
@amantinband
@amantinband 9 ай бұрын
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
@cccyberfamilydk
@cccyberfamilydk 9 ай бұрын
Nice. What if the HeavyComputation is Task based or ValueTask based? Is PLinq still the right way to go?
@Pezsmapatkany
@Pezsmapatkany 9 ай бұрын
Highly informative! Excellent job!
@TCFIFA
@TCFIFA 8 ай бұрын
עבודה מעולה!
@TasnimBENNACER
@TasnimBENNACER 9 ай бұрын
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 ?
@amantinband
@amantinband 9 ай бұрын
Presentify
@ЯнеКателиев
@ЯнеКателиев 9 ай бұрын
Very good video. Thank you.
@minionmasterSXS
@minionmasterSXS 8 ай бұрын
this is probably a dumb question but... can you use P LINQ AND SIMD LINQ together?
@omidkianifar5144
@omidkianifar5144 8 ай бұрын
Nice. It's time to create video for Task, await, cancellation token, asyn void, confiureawait false 😅😊🙏
@timur2887
@timur2887 9 ай бұрын
Great, thanks!
@MrAymenmatador
@MrAymenmatador 8 ай бұрын
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
@amantinband
@amantinband 8 ай бұрын
If you need to maintain a specific order then you can use AsOrdered
@mdnoverflow
@mdnoverflow 7 ай бұрын
how to scaffold test project to test all this ?
@alexmel8448
@alexmel8448 9 ай бұрын
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 ?
@amantinband
@amantinband 9 ай бұрын
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.
@null-undefined
@null-undefined 9 ай бұрын
What is this dump() extension method?
@amantinband
@amantinband 9 ай бұрын
It’s a convenient way to print objects to the console. Check out the package Dumpify
@Buutyful
@Buutyful 9 ай бұрын
thx :)
Dependency Injection Deep Dive | .NET & C# Essentials
38:01
Amichai Mantinband
Рет қаралды 26 М.
Every Single LINQ Extension Method With Examples | .NET & C# Essentials
42:28
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 6 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 35 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
Parallelization and PLINQ
20:43
Coding Tutorials
Рет қаралды 7 М.
Exceptions are evil. This is what I do instead.
24:41
Amichai Mantinband
Рет қаралды 21 М.
Don’t Use the Wrong LINQ Methods
12:42
Nick Chapsas
Рет қаралды 46 М.
Stop returning custom error responses from your API. Do this instead.
12:07
Amichai Mantinband
Рет қаралды 85 М.
LINQ's INSANE Improvements in .NET 9
11:26
Nick Chapsas
Рет қаралды 61 М.
Stop Calling Your API a "REST API"
17:42
Amichai Mantinband
Рет қаралды 18 М.
Getting Started with Dapper in .NET
11:29
Amichai Mantinband
Рет қаралды 14 М.
How To Design Amazing REST APIs
18:57
Amichai Mantinband
Рет қаралды 18 М.
What's new in .NET 9 and C# 13
19:21
Filip Ekberg
Рет қаралды 18 М.