Skip to main content
Write High-Performance C# Code
Course

Write High-Performance C# Code

This course will teach you how to speed up your C# code with performance tricks that every professional developer should know. You’ll learn the fundamentals of the .NET Framework, the Garbage Collector, the stack and heap, boxing and unboxing, and much more.

I’ll also give you a crash course in Intermediate Language so that you can read the machine language produced by the C# compiler.

Details

This course will teach you how to speed up your C# code with performance tricks that every professional developer should know. You’ll learn the fundamentals of the .NET Framework, how the Garbage Collector works, the difference between the stack and the heap, what boxing and unboxing is, and much more!

We’ll also look at array performance, using pointers in C# to manipulate memory directly, and a neat trick to place an array in stack memory for extra performance. Throughout the course we will be compiling C# code snippets into Intermediate Language, and then inspecting the compiled code for performance bottlenecks. You’ll learn how to interpret basic IL instructions and read machine code directly.

108
Course Lessons
2
Lab Lessons
4
Skills
Unlock more features

Professional and Business users can track their skill proficiency.

Sign Up

Skills Covered In This Course

The lessons, quizzes and labs in this course explore the following core concepts and skills:

Lesson Preview

In this lesson, we inspect compiled intermediate language for one-dimensional array reads and writes, and highlight the dedicated stelem and ldelem instructions that let the JIT compiler translate array access directly into efficient CPU operations.