Session
Röck Yoür Cöde: Optimizing .NET Code for Speed and Efficiency
Everyday .NET code can perform more work and allocate more memory than its author expects. In frequently executed paths, those costs can affect application responsiveness, throughput, and resource usage.
In this demonstration-driven session, David McCarter explores practical ways to improve C# and .NET code through measured comparisons. You’ll examine alternative implementations of common operations, compare execution time and memory allocations, and discover why seemingly small coding choices can produce different results.
Examples cover collection processing, string operations, and avoidable allocations. For each optimization, we’ll examine the original implementation, the proposed change, the measured results, and the conditions that influence the outcome.
You’ll learn how to recognize unnecessary work, assess API choices, and decide whether a performance improvement justifies additional complexity. We’ll also discuss why results depend on factors such as input size and runtime version, and why an improvement in one method still needs validation in the application using it.
A focused AI example shows how to evaluate a suggested optimization: check that behavior is preserved, compare it with the original implementation, and let the measurements guide the decision.
Drawing on David’s published performance research and open-source work, this session connects practical coding techniques with evidence you can examine and apply.
Leave better equipped to spot performance opportunities, compare solutions, and make informed optimization decisions in your own .NET projects.
What Attendees Will Learn
• Identify unnecessary processing and allocations in common C#/.NET operations.
• Compare implementations using execution time, allocated bytes, and equivalent behavior.
• Evaluate how workload, runtime, and maintainability affect optimization decisions.
• Validate proposed improvements, including AI suggestions, through correctness checks and performance measurements.
Discover practical ways to improve .NET execution time and reduce unnecessary allocations. Through live code demonstrations and benchmark comparisons, David McCarter explains which changes help, why they work, and the tradeoffs involved—including how to validate an AI-suggested optimization.
David McCarter
Microsoft MVP (Developer Technologies), Software Architect, Speaker, Trainer, Inventor, and Mentor.
Austin, Texas, United States
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top