IEnumerable vs IEnumerator in C#: One is 2x Faster - LinkedIn Edition
Read OriginalThis article critically examines a popular LinkedIn post claiming one C# enumeration interface is 2x faster than the other. It presents the benchmark code, explains the fundamental difference between IEnumerable and IEnumerator, and then details three major flaws in the benchmark methodology that invalidate the performance claim, including the use of Debug.WriteLine and a tiny sample size.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser