High Performance C#

Course Outline Outline
Reading Material Reading Material
PowerPoint Slides Intro.pptx
Useful Links
DayModulesSharing
1
  • Some scenarios
  • Factors affecting performance in C# programming
  • The Benchmarking preparation
  • Conventional for Vs foreach
  • IEnumerable, yield return and foreach
  • Row-First Vs Column-First iteration
  • The impact of Recursion
  • The impact of constructor chaining
  • Remove Redundant Code
  • Leverage on short circuit
  • The impact of boxing and unboxing
  • ==, Equals and ReferenceEquals
  • Using bitwise operators
  • Optional parameter Vs method overloading
  • Parameter passing By Value Vs By Reference
  • Normal return Vs return by out
  • Using StringBuilder
  • Generic List initial internal buffer size
  • Using Dictionary
  • Using proper collections
2
  • Using String.Compare method
  • Using Array.Copy
  • Using TryParse() method
  • Using Buffer.BlockCopy
  • struct Vs class
  • getter Vs readonly field
  • The impact of overflow check
  • Extension Method
  • The impact of inlining
  • Using class level members
  • Using cloning
  • Using pointer
  • Asynchronous coding
  • Meta coding
  • Avoid costly functions
  • Refactor to less costly expression
  • Lookup Tables
  • Caching
3
  • FlyWeight
  • Prototype
Benchmark.NET

Recommanded Books
TitleHigh-Performance Programming C# and .NET Crash Course
ISBNB0D16JDSFS
AuthorKatie Millie
Year2024
Publisher Independently Published
TitleC# & C++: 5 Books in 1 - The #1 Coding Course from Beginner to Advanced
ISBNB0C1ZPZC1Y
AuthorMark Reed
Year2023
Publisher
TitleHigh Performance Enterprise Apps Using C# 10 And .NET 6
ISBN978-9-355-51018-1
Authordu, Ockert J.
Year2022
Publisher BPB Publications
TitleC# 7 and .NET Core 2.0 High Performance
ISBN978-1-788-47004-9
AuthorOvais Mehboob Ahmed Khan
Year2018
Publisher Packt Publishing
TitleHigh-Performance Programming in C# and .NET: Understand the nuts and bolts of developing robust, faster, and resilient applications in C# 10.0 and .NET 6
ISBN978-1-800-56471-8
AuthorJason Alls
Year2022
Publisher Packt Publishing
TitlePro .NET Benchmarking: The Art of Performance Measurement
ISBN978-1-484-24940-6
AuthorAndrey Akinshin
Year2019
Publisher Apress
TitlePro .NET Memory Management: For Better Code, Performance, and Scalability
ISBN978-1-484-24026-7
AuthorKonrad Kokosa
Year2018
Publisher Apress
TitleClean Code in C#: Refactor your legacy C# code base and improve application performance by applying best practices
ISBN978-1-838-98297-3
AuthorJason Alls
Year2020
Publisher Packt Publishing
TitlePro .NET Performance: Optimize Your C# Application
ISBN978-1-430-24458-5
AuthorSasha Goldshtein, Dima Zurbalev, Ido Flatow
Year2012
Publisher Apress
TitleEffective C# (Covers C# 4.0): 50 Specific Ways to Improve Your C# (2nd Edition)
ISBN978-0-321-65870-8
AuthorBill Wagner
Year2010
Publisher Addison-Wesley Professional
Title.NET Performance Testing and Optimization - The Complete Guide
ISBN 978-1-906-43440-3
AuthorPaul Glavich and Chris Farrell
Year2010
Publisher Red gate books
TitleAsync in C# 5.0
ISBN978-1-449-33716-2
AuthorAlex Davies
Year2012
Publisher O'Reilly Media