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