this post was submitted on 13 Jun 2024
19 points (95.2% liked)

C Sharp

1506 readers
1 users here now

A community about the C# programming language

Getting started

Useful resources

IDEs and code editors

Tools

Rules

Related communities

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 2 months ago* (last edited 2 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.