💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱 to C SharpEnglish · 6 months agoC# Array and List Fastest Loop in 2024 - NDepend Blogblog.ndepend.comexternal-linkmessage-square2fedilinkarrow-up121arrow-down11cross-posted to: dotnet
arrow-up120arrow-down1external-linkC# Array and List Fastest Loop in 2024 - NDepend Blogblog.ndepend.com💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱 to C SharpEnglish · 6 months agomessage-square2fedilinkcross-posted to: dotnet
minus-squareJakenVeina@lemm.eelinkfedilinkEnglisharrow-up3·edit-26 months agoI 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.
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 forArray<T>
at the bytecode level, I was quite impressed.