Looks same, runs different.
Why
Enumerator allocations.
Tip
Use for in hot paths.
for (int i = 0; i < list.Count; i++) {}
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
Looks same, runs different.
Why
Enumerator allocations.
Tip
Use for in hot paths.
for (int i = 0; i < list.Count; i++) {}