Does MoreLINQ Zip Outperform LINQ Zip? Let's Benchmark Them!
September 6, 2024
• 232 views
linqmorelinqprogramminglinq querylanguage integrated querylinq performancelinq tutorialyield returnyield return c#dotnetc# linqlinq c#learn linqintroduction to linq in c#linq in c#.netienumerableienumerable c#more linqdotnet linqlinq how tolinq tutorial C#linq tutorial for beginnersc# linq tutorial for beginnerslinq for beginnersbenchmarkdotnetbenchmarkingbenchmark dotnetbenchmarkdotnet tutorialdotnet performanceLINQ Zip
A duel between two methods for zipping collections in CSharp!
But a challenger approaches:
Our very own naive implementation of LINQ Zip!
In this video, I'll walk through the BenchmarkDotNet benchmarks for comparing the LINQ zip method and MoreLINQ ZipShortest and ZipLongest methods. We'll even see how my naive implementation does against these!
Buckle up and get ready to see how optimized my code is!
Spoiler Alert: It's not.
More Spoiler Alert: You'll still be surprised.
