C# Memory Tricks: Learn How To Master The Garbage Collector

This course teaches you advanced C# memory management tricks that every professional .NET developer must know.

4.50 (1517 reviews)
Udemy
platform
English
language
Programming Languages
category
instructor
C# Memory Tricks: Learn How To Master The Garbage Collector
8,982
students
3.5 hours
content
Mar 2024
last update
$84.99
regular price

What you will learn

Learn how the Garbage Collector works

Master .NET memory optimization

Discover the truth about finalizers

Learn how to measure the memory footprint of your code

The unexpected memory footprint of List resizing

Structs versus classes - which one is better?

What assumptions does the GC make about object size and lifetime?

Manual deallocation with the Dispose pattern

... and much more!

Why take this course?

Modern computers have loads of memory. But it's very easy to burn through it all in seconds if your code is not efficient about allocating and using memory.

Did you know that one simple mistake can make your code allocate 1600 times more memory than absolutely necessary?

Don't be 'that developer' who keeps crashing the development server with an OutOfMemory exception!

And you certainly don't want to be responsible for inflating the hardware budget. Can you imagine having to explain to your team that 512 GB of memory is not enough to run your code on the production server?

Let me help you.

It doesn't have to be like this. If you have a good understanding of the garbage collection process and follow a few simple best practices, you can dramatically reduce the memory footprint of your code.

Sound good?

In the last 10 years I have learned the secrets of garbage collection in .NET, and in this course I am going to share them all with you.

In a series of short lectures I will take a detailed look at the garbage collection process. I will show you all of the memory allocation problems you can expect when writing C# code, like unexpected boxing, string duplication, collection resizing, and more. I'll teach you quick and easy strategies to resolve these problems.

By the end of this course you will be able to master the garbage collector.

Why should you take this course?

You should take this course if you are a beginner or intermediate C# developer and want to take your skills to the next level. Garbage collection and memory management might sound complicated, but all of my lectures are very easy to follow and I explain all topics with clear code and many instructive diagrams. You'll have no trouble following along.

Or maybe you're working on a critical section of code in a C# project, and need to make sure your memory usage is as efficient as possible? The tips and tricks in this course will help you immensely.

Or maybe you're preparing for a C# related job interview? This course will give you an excellent foundation to answer any questions they might throw at you.

Screenshots

C# Memory Tricks: Learn How To Master The Garbage Collector - Screenshot_01C# Memory Tricks: Learn How To Master The Garbage Collector - Screenshot_02C# Memory Tricks: Learn How To Master The Garbage Collector - Screenshot_03C# Memory Tricks: Learn How To Master The Garbage Collector - Screenshot_04

Reviews

Joseph
January 21, 2024
Found the content here to be very interesting, I’m actually a front end dev so I don’t normally pay attention to such when writing c# code, it’s a great learning curve.
LUCAS
June 19, 2023
the professor's teaching is incredible, I managed to get a great idea of ​​how to implement a more performative code.. The examples are great for gaining insights.
Daniel
February 21, 2023
It is a good course I think, could be better of course, but in general is a good course to show some tips about optimization and GC.
Paolo
February 11, 2023
The course content is amazing, the explanations are fantastic. What I've missed a lot is some downloadable resources. It is very annoying taking unnecessary notes.
Caio
January 13, 2023
This course is amazing, the explanations and examples are very good, I am very satisfied and already planning some use of the learnings at work. For non-native English speakers: the instructor's speech is very intelligible, I'm not a native English speaker, I'm Brazilian, and it was very easy to understand everything, so this course is also a good opportunity to train your listening skills.
Anurag
June 12, 2022
Mark has explained the concepts very clearly, and I got a solid understanding of GC. In fact, his in-depth explanation of this topic has cleared many concepts on the .net framework in general. Thanks, Anurag
Oleksandr
March 29, 2022
Examples are so artificial. Who uses ArrayList nowadays? And I've never seen buffer arrays of type int.
Nikolai
March 14, 2022
The information within is amazing and brilliantly displayed. You might just wanna do yourself a favor and set the speed of the video to 1.5-1.75.
Ruben
January 13, 2022
This course has helped me understand the details about memory (heap/stack), best practices, patterns.
Vladan
December 6, 2021
Very interesting and educational course. Lots of useful information about how the code works under the hood. Definitely recommend to every C# developer.
Nguyen
December 1, 2021
Thanks for invaluable course, I was impressive about the detail of how does Garbage Collector work, about your comprehensive explanation, and about your very simple suggestions. Thanks!
Alexey
November 16, 2021
Very well explanations about CG and optimizations! I'm noob in this topic. And i get new information and i get an interest in how List<T> etc.. build under the hood
Kalpak
October 13, 2021
Great knowledge! I really liked the course and I am very happy to join all courses. Thank you so much!
Edvinas
June 2, 2021
The only thing I would change is the speed of presentation. Not entirely sure what level of developers is this course aimed to, but I have to play it at 1.25x speed in order not to loose interest. Otherwise - great!
Joshua
May 3, 2021
As always Mark goes a little too slow for my taste, but you will definitively learn every point he's trying to make. I've taken similar courses, but learned new tricks in this one; I am happy...

Charts

Price

C# Memory Tricks: Learn How To Master The Garbage Collector - Price chart

Rating

C# Memory Tricks: Learn How To Master The Garbage Collector - Ratings chart

Enrollment distribution

C# Memory Tricks: Learn How To Master The Garbage Collector - Distribution chart
587144
udemy ID
8/19/2015
course created date
11/22/2019
course indexed date
Bot
course submited by