this post was submitted on 13 Jun 2024
20 points (95.5% liked)

C Sharp

1537 readers
3 users here now

A community about the C# programming language

Getting started

Useful resources

IDEs and code editors

Tools

Rules

Related communities

founded 2 years ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old
[โ€“] JustAnotherRando 3 points 6 months ago

Interesting read, thanks for sharing!

[โ€“] [email protected] 3 points 6 months ago* (last edited 6 months ago)

I actually benchmarked almost exactly these same things, a few months ago, and that lines up with the results I got. foreach in particular is HEAVILY optimized for Array<T> at the bytecode level, I was quite impressed.