This post comprises infographics showing various loop optimizations that happen in C# (dotnet). I've also tested simple loops in GO and Rust, but they need more tests, and separate posts will be made for these compilers; Go and Rust's tests will be in the bonus section of this article. Warning: Compilers improve with time. Therefore, most graphics will contain the compiler version. Let's start with C# and two of its primary optimizations:Loop CloningLoop HoistingLoop Cloning: Loop cloning is a very ...

Dziel się z innymi:
Loop Optimizations in C#

Inne 1176 dni, 8 godzin, 40 minut temu Piotr Stapp 113 pokaż kod licznika zwiń

Wczytywanie artykułów...

Najaktywniejsi w tym miesiącu