Udemy

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

Enroll Now
  • 9,792 Students
  • Updated 5/2024
4.9
(1,694 Ratings)
CTgoodjobs selects quality courses to enhance professionals' competitiveness. By purchasing courses through links on our site, we may receive an affiliate commission.

Course Information

Registration period
Year-round Recruitment
Course Level
Study Mode
Duration
3 Hour(s) 32 Minute(s)
Language
English
Taught by
Mark Farragher
Rating
4.9
(1,694 Ratings)
1 views

Course Overview

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.

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.

Course Content

  • 5 section(s)
  • 28 lecture(s)
  • Section 1 Introduction
  • Section 2 Fundamentals Of The .NET Framework
  • Section 3 A Detailed Look At Garbage Collection
  • Section 4 Simple Tricks To Improve Memory Allocation In Your Code
  • Section 5 Final Words

What You’ll 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!


Reviews

  • M
    Mallory Foland
    5.0

    Very clear and concise explanation of how the garbage collector works, lots of practical examples of common pitfalls.

  • A
    Andreea Cret
    5.0

    Everything was described with much sense and the "definitions" on the boards really helped to better understand the examples.

  • C
    Cristian Bratu
    5.0

    Really useful information and tips on how to reduce the memory usage of an application!

  • M
    Mufassira Daleel
    5.0

    Amazing

Start FollowingSee all

We use cookies to enhance your experience on our website. Please read and confirm your agreement to our Privacy Policy and Terms and Conditions before continue to browse our website.

Read and Agreed