C sharp Memory Tricks: Learn How To Master The Garbage Collector
MP4 | Video: 1280x720 | Duration: 3.5h | Language: English
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.n 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.
What Will I 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