It would be interesting to compare the MoreLINQ Batch method with the built-in System.Linq.Enumerable.Chunk. Plus another one for manual batching is 'yield return new ArraySegment(sourceArray, offset, batchCount)
💡 Learn how to program in C#: - dometrain.com/course/getting-started-csharp?affcode=1115529_nl-teyzg 🧠Deep dive on C#: - dometrain.com/course/deep-dive-csharp?affcode=1115529_nl-teyzg 🎁Zero to Hero C# Bundle: - dometrain.com/bundle/from-zero-to-hero-csharp/?affcode=1115529_nl-teyzg 💪 Skill up your refactoring: - dometrain.com/course/from-zero-to-hero-refactoring-for-csharp-developers?affcode=1115529_nl-teyzg ✉ Subscribe to my free software engineering newsletter: - subscribe.devleader.ca
@@benomine likely because MoreLINQ predates this method being available. Someone else asked for metrics comparing to chunk, so we'll see in another video if there's any difference 🤷♂️
** Corrected benchmarks:
ua-cam.com/video/t-qWtP_TcTc/v-deo.html
It would be interesting to compare the MoreLINQ Batch method with the built-in System.Linq.Enumerable.Chunk.
Plus another one for manual batching is 'yield return new ArraySegment(sourceArray, offset, batchCount)
@@19balazs86 I can do that 🙂
@@DevLeader Great, I love these benchmark comparisons. You can learn a lot about writing better code by understanding small details
@@19balazs86 glad to hear 😁 thanks for the feedback!
At 12:10 in the video you show the MoreLinq batch test, but looking at the video it appears you have a fixed size of 100 for the batch size.
Ugh you're TOTALLY right. Let me re-up this in the next video. Thanks for your callout.
I'll be extending the benchmarks based on some other comments.
Tomorrow's video should address this error. Already sent to the editor.
Huge thanks for pointing this out!
💡 Learn how to program in C#:
- dometrain.com/course/getting-started-csharp?affcode=1115529_nl-teyzg
🧠Deep dive on C#:
- dometrain.com/course/deep-dive-csharp?affcode=1115529_nl-teyzg
🎁Zero to Hero C# Bundle:
- dometrain.com/bundle/from-zero-to-hero-csharp/?affcode=1115529_nl-teyzg
💪 Skill up your refactoring:
- dometrain.com/course/from-zero-to-hero-refactoring-for-csharp-developers?affcode=1115529_nl-teyzg
✉ Subscribe to my free software engineering newsletter:
- subscribe.devleader.ca
Why use the method Batch when you have Chunk available ?
@@benomine likely because MoreLINQ predates this method being available.
Someone else asked for metrics comparing to chunk, so we'll see in another video if there's any difference 🤷♂️
@@DevLeader Thanks for the response! It's true Chunk is way younger than MoreLINQ. Love your videos btw.