Here’s What You’ll Get
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.
Content: training lectures, video lessons, quizzes and coding exercises.
Requirements: a Windows, Mac or Linux laptop with Microsoft Visual Studio or Visual Studio Code.
Support: Slack channel.
Associated certification: none.
In this complimentary training lecture I will teach you how to optimize arrays in C#. We’ll look at 1-dimensional arrays, multidimensional arrays and jagged arrays and compare the performance of all three. You will also learn a technique called Array Flattening to speed up 2-dimensional arrays.
Introduction to code optimization
Fundamentals of the .NET Framework
Boxing and unboxing
Basic Optimizations: the low-hanging fruit
How to prevent boxing and unboxing
Fast string concatenation
Throwing and catching exceptions
For versus Foreach
Fast Garbage Collection (Part 1 and Part 2)
Fast class factories
A crash course in Intermediate Language
Common Intermediate Language
Arrays on the stack
Pointers (Part 1 and Part 2)
Background Info – Modifying String Constants
Sign Up For This Training
Looking For Something Else?
CHECK OUT MY OTHER TRAINING COURSES
Is this training course not exactly what you’re looking for? No problem, I have many other C# courses in my catalog. Take a look at these alternatives.
Rune Solberg, online student
Frequently Asked Questions
- This Training
- Self-Paced Training
- Guided Training
- Classroom Training