|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/csharp-performance-tricks-how-to-radically-optimize-your-code/
课程评论:没有评论
课程名称:C# 性能技巧:如何彻底加速你的代码 课程概述:你知道如何编写快速的 C# 代码吗?虽然你可能已经参加过 C# 编程课程,或者在学校和大学学习过这种语言,但大多数课程只教你如何写代码,而不是如何编写快速的代码。 .NET 框架庞大,对于任何特定问题,通常都有多种解决方案,而最佳选择并不总是明显的。 你知道使用错误的框架类进行字符串拼接会使你的代码变慢超过两百倍吗?而如果你没有正确处理异常,代码运行速度可能会慢到正常情况的千倍。慢速 C# 代码是一大问题。在互联网应用中,慢速代码无法支持成千上万的用户,用户界面会因此变得无法使用,而移动应用也可能在应用商店中表现不佳。慢速代码会限制你的发展! 本课程提供一系列简短的讲座,涵盖许多常见的性能瓶颈。每个问题我都将介绍,并编写一个小测试程序来测量基线性能。接着,我会演示每种可能的解决方案,并基准测试每种解决方案的表现。此外,我还会深入探讨公共中间语言(CIL),这是 C# 编译器编译后生成的语言。不要担心,CIL 语言实际上很容易阅读和理解,我将通过简短的15分钟讲座带你掌握基础知识。能够阅读 CIL 代码是一个非常有用的技能,能够帮助你避免许多性能陷阱,并加深你对 .NET 框架的理解。 为什么要参加这门课程?如果你是一名初学者或中级 C# 开发人员,希望将技能提升到一个新水平,这门课程非常适合你。我的讲座容易理解,每个主题都有清晰的代码和许多说明性的图示。或者你可能正在一个 C# 项目的关键代码部分工作,需要尽可能快速地运行代码。这门课程中的技巧和窍门将大有裨益。又或者你在为 C# 相关的职位面试做准备?这门课程将为你提供出色的基础,以回答任何与性能相关的问题。
Do you know how to write fast C# code?You may have already enrolled in a C# programming course, or learned the language at school or university. But here's a sobering fact: most courses only teach you how to write code, not how to write fast code.The.NET Framework is huge. For any given problem there are many solutions, and it is not always clear which solution is the best choice.Did you know that adding strings together using the wrong Framework class will slow down your code by a factor of more than two hundred? And if you're not handling exceptions the right way, your code wil run a mind-boggling thousand times slower than normal. Slow C# code is a big problem. Slow code on the web will not scale to thousands of users. Slow code will make your user interface unusable. Slow code will make your mobile apps languish in the app store.Slow code is holding you back!I can help you.In a series of short lectures I will cover many common performance bottlenecks. I will introduce each problem, and then write a small test program to measure the baseline performance. Then I will demonstrate each possible solution, and benchmark how each solution measures up. But there's more! I will also dive into Common Intermediate Code (CIL), the language that the C# compiler compiles to. If this sounds daunting, don't worry! The CIL language is actually very easy to read and understand. I'll take you through the basics in a quick 15-minute lecture.Being able to read CIL code is a very useful skill that will help you avoid many performance pitfalls and give you a deeper understanding of the.NET Framework.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. All my lectures are very easy to follow, and I explain all topics with clear code and many instructive diagrams. Or you might be working on a critical section of code in a C# project, and need to make your code run as fast 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 performance-related questions they might throw at you.