Shocking Iterator Performance Benchmarks in C# dotnet
March 17, 2023
• 980 views
c#.netc# tutorialdotnetdotnet coredotnet core tutorialdotnet core c#c# dotnet coreenumerableenumerablesienumerableenumerables c#c# enumerablesc# ienumerable foreachc# iteratorc# iteratorsc# iterationc# foreachc# enumerable foreachforeach ienumerableforeach ienumerable vs listc# collectionsienumerable tutorialhow do enumerables workbenchmarkbenchmarksperformance benchmarkC# benchmarkc# performance benchmarkc# performance
Should you be using an iterator or a materialized collection for your data-fetching API? In this video, we look at the performance characteristics of both by examining iterator benchmarks in C# dotnet compared with materialized collections.
When you're done with this video, you should follow up with this one:
https://www.youtube.com/watch?v=0s_VMhZSOwQ
You can also follow along in the corresponding blog post here:
https://www.devleader.ca/2023/03/17/shocking-results-from-collection-and-iterator-benchmarks/
Want the source for this video? Check it out here:
https://github.com/ncosentino/DevLeader/tree/master/AllAboutEnumerables/AllAboutEnumerables.BasicIteratorBenchmarks
For more information about enumerables, iterators, and collections, see:
https://www.youtube.com/watch?v=RR7Cq0iwNYo&list=PLzATctVhnsgjE3qOsbkPaC1NxXD605wOC
