💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev to C Sharp@programming.devEnglish · 16 days agoC# Array and List Fastest Loop in 2024 - NDepend Blogblog.ndepend.comexternal-linkmessage-square2fedilinkarrow-up120cross-posted to: dotnet@programming.dev
arrow-up120external-linkC# Array and List Fastest Loop in 2024 - NDepend Blogblog.ndepend.com💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev to C Sharp@programming.devEnglish · 16 days agomessage-square2fedilinkcross-posted to: dotnet@programming.dev
minus-squareJakenVeina@lemm.eelinkfedilinkEnglisharrow-up3·edit-210 days 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.