I/O operations impact application responsiveness, scalability, and costs. Enhancing file access, HTTP requests, and networking improves user experience while reducing resource consumption. This chapter discusses techniques to optimize I/O performance in .NET, utilizing benchmark results and profilers to identify bottlenecks and improve efficiency in near-production environments.
Category: C#
GitHub Copilot Agent for Unit Tests: My Real-World Spargine Experiment
After experimenting with the GitHub Copilot Agent during the 2026 Microsoft MVP Summit, the author faced numerous challenges, including code deletion, slow performance, and inconsistent adherence to coding conventions. Despite these issues, the agent added valuable unit tests to the Spargine projects, but it requires careful oversight and refining of prompts for effective use.
On .NET Live: How Coding Standards Supercharge .NET Quality & Performance
For the second time, I’m excited to be a guest on On .NET Live on May 18th at 9 AM PST! I’ll be talking about one of my favorite subjects: coding standards and how they can supercharge .NET code quality, performance, maintainability, and consistency across your projects. Join us live and bring your burning questions. … Continue reading On .NET Live: How Coding Standards Supercharge .NET Quality & Performance
Boost Your .NET Projects with Spargine: High-Performance ULIDs with the Ulid Struct
In Spargine 8, I introduced the UlidGenerator type to make working with ULIDs easier in .NET applications. For the .NET 10 release, I took this idea further — converting ULIDs into a first-class value type (struct) in the DotNetTips.Spargine.Core assembly, similar in spirit to the built-in Guid type. Why? Because modern distributed applications increasingly need … Continue reading Boost Your .NET Projects with Spargine: High-Performance ULIDs with the Ulid Struct
File I/O Performance: Picking the Fastest Weapon in Your Arsenal
This article provides insights on the fastest file I/O methods for .NET 10, emphasizing benchmarks with 1 MB payloads.
Rock Your Code: Code & App Performance for Microsoft .NET (5th Edition)
The fifth edition of David McCarter's book, "Röck Yöur Cöde: Code & App Performance for Microsoft .NET," is now available on Amazon. It offers practical techniques for enhancing .NET application performance, including coding patterns, memory insights, and benchmarking. This definitive guide is essential for modern .NET developers aiming for speed and scalability.
Defensive Programming Rule #6: Verify Resource Availability (Before You Access It)
The article emphasizes the importance of defensive programming in .NET applications by validating resource availability before access. It outlines guidelines for checking connectivity, setting timeouts, and managing user experiences when resources are unavailable. The author shares personal insights and promotes Spargine, an open-source project designed to enhance defensive programming practices.
Defensive Programming Rule #5: Let the Compiler Work for You — Harness the Power of Type Checking
The excerpt discusses coding standards highlighted in "Rock Your Code: Coding Standards for Microsoft .NET," emphasizing the pitfalls of using numerous public fields in a class. It advocates for strong typing, proper encapsulation, and input validation to enhance object integrity. The author underscores the importance of self-documenting code for maintainability.
Defensive Programming Rule #4: Safe and Efficient Type Casting
This article emphasizes defensive programming by highlighting safe type compatibility checks in .NET. It advises using the 'is' keyword to prevent InvalidCastException and warns against unnecessary type casts that clutter code and affect performance. The open-source project Spargine aids developers with tools for better validation and logging, promoting cleaner, more resilient applications.
dotNetDave Rocks Austin .NET User Group November 2025 Meeting
The dotNetDave No Rest for the Wicked World Tour will visit Austin on November 20, 2025, where I will present a session titled "Röck Yoür Cöde." This session addresses critical issues in memory management related to disposable types in .NET, offering practical techniques to enhance application performance and prevent slowdowns and leaks.

You must be logged in to post a comment.