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

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 28

  • @Silky987
    @Silky987 9 месяцев назад +12

    Great content, I've learned a little more today. Thank you!

  • @vitaliiodiichuk5317
    @vitaliiodiichuk5317 8 месяцев назад

    Really great description for plinq, thanks

  • @jerrydsta1056
    @jerrydsta1056 9 месяцев назад +7

    what is the .Dump() method references from? thanks!

  • @TCFIFA
    @TCFIFA 8 месяцев назад

    עבודה מעולה!

  • @juniorcode41
    @juniorcode41 3 месяца назад

    Thank you. It is great video.

  • @Pezsmapatkany
    @Pezsmapatkany 9 месяцев назад +1

    Highly informative! Excellent job!

  • @alfonsdeda8912
    @alfonsdeda8912 9 месяцев назад +1

    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.

  • @ЯнеКателиев
    @ЯнеКателиев 9 месяцев назад

    Very good video. Thank you.

  • @kesavanarayanaanaparthi6428
    @kesavanarayanaanaparthi6428 9 месяцев назад

    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.

  • @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 ?

  • @timur2887
    @timur2887 9 месяцев назад

    Great, thanks!

  • @omidkianifar5144
    @omidkianifar5144 8 месяцев назад

    Nice. It's time to create video for Task, await, cancellation token, asyn void, confiureawait false 😅😊🙏

  • @cccyberfamilydk
    @cccyberfamilydk 9 месяцев назад

    Nice. What if the HeavyComputation is Task based or ValueTask based? Is PLinq still the right way to go?

  • @Dustyy01
    @Dustyy01 9 месяцев назад +2

    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 месяцев назад +7

      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

  • @minionmasterSXS
    @minionmasterSXS 9 месяцев назад

    this is probably a dumb question but... can you use P LINQ AND SIMD LINQ together?

  • @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 ?

  • @Buutyful
    @Buutyful 9 месяцев назад

    thx :)

  • @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 месяцев назад +1

      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 месяцев назад +5

      It’s a convenient way to print objects to the console. Check out the package Dumpify