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

所在平台: Udemy

课程主页: https://www.udemy.com/course/csharp-memory-tricks-learn-how-to-master-the-garbage-collector/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:C# 内存技巧:掌握垃圾收集器 课程概述:现代计算机拥有大量内存,但如果你的代码在内存分配和使用方面效率不高,很容易在瞬间耗尽所有内存。你知道吗?一个简单的错误就可能使你的代码分配比实际需要多1600倍的内存!不要成为那个因 OutOfMemory 异常而让开发服务器崩溃的开发者!而且,你肯定不想因硬件预算膨胀而承担责任。想象一下,你需要向团队解释为什么在生产服务器上需要512 GB的内存来运行你的代码。这一切都可以改变。 通过对垃圾收集过程的深入理解和遵循一些简单的最佳实践,你可以显著降低代码的内存占用。过去10年,我学习了.NET中垃圾收集的秘密,这门课将与大家分享。在一系列简短的讲座中,我会详细介绍垃圾收集过程,以及在编写C#代码时可能遇到的内存分配问题,例如意外装箱、字符串重复、集合调整大小等。我将教授快速简便的解决策略。 课程结束时,你将能够掌握垃圾收集器。 为什么要选修这门课程?如果你是初学者或中级C#开发者,想让自己的技能更进一步,垃圾收集和内存管理可能听起来复杂,但我的课程讲解十分简洁易懂,配有清晰的代码和富有启发性的图示,你绝对不会觉得困惑。或者,如果你在C#项目中处理关键代码段,需要确保内存使用尽可能高效,这门课程中的技巧和窍门将大有帮助。还有,如果你正在准备与C#相关的面试,这门课程将为你提供良好的基础,使你能够应对各种提问。

课程评论(0条)

课程详情

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.

课程标签

0人关注该课程

主题相关的课程