#CodePerformance
🚀 Don't make the same mistake! Learn from DotNetDave's story about the critical importance of addressing performance before product release. Read more here! dotnettips.wordpress.com/2024/04/04/d...
#CodePerformance #dotNetDaveStory #MVPBuzz #SoftwareDevelopment #SoftwareEngineering
dotNetDave Story: The Critical Importance of Addressing Performance Before Product Release
A true story illustrates the critical importance of addressing performance issues before a product launch. Despite warnings about potential negative impacts on customer experience, management dismi…
dotnettips.wordpress.com
July 3, 2026 at 2:56 PM
🚀 Mastering parallelism in C#! Learn how to use ForEachAsync() with List<>. 💻 Dive into the details and benchmark results in our latest article. 📊
Read more ➡️
#dotnet #dotnet8 #MVPBuzz #CodePerformance
Collection Performance: Using ForEachAsync() with List<>
The post demonstrates the usage of Parallel.ForEachAsync() with a List of reference types.
dotnettips.wordpress.com
March 22, 2025 at 12:43 PM
🚀 Mastering parallelism in C#! Learn how to use ForEachAsync() with List<>. 💻 Dive into the details and benchmark results in our latest article. 📊
Read more ➡️
#dotnet #dotnet8 #MVPBuzz #CodePerformance
Collection Performance: Using ForEachAsync() with List<>
The post demonstrates the usage of Parallel.ForEachAsync() with a List of reference types.
dotnettips.wordpress.com
December 23, 2024 at 2:35 PM
🚀 Boost your C# Dictionary skills! 📚 Learn about the efficiency of Add() vs. TryAdd() methods in this insightful article. 💻 Check out the benchmark results and optimize your code.
#dotnet #dotnet8 #MVPBuzz #CodePerformance
Collection Performance: Adding Items To a Dictionary
The common method to add items to a Dictionary is through the Add() method, but TryAdd() is an alternative that returns a Boolean. Benchmark tests show that TryAdd() is slightly faster but degrades…
dotnettips.wordpress.com
January 23, 2025 at 2:37 PM
🚀 Enhance your code efficiency! Learn about SequenceEqual() and StructuralSequenceEqual() methods for precise collection comparison. Check out this insightful article!
#CodeOptimization #dotnet #dotnet8 #MVPBuzz #CodePerformance
Collection Performance: Optimizing Sequence Comparison
The article discusses different methods for comparing two collections for identity in programming. It introduces the use of the SequenceEqual() method for comparing sequences in the LINQ extension …
dotnettips.wordpress.com
February 13, 2025 at 3:19 PM
Discover the surprising truth about static vs. non-static methods' performance in coding! 🔍📊 Check out the insightful findings and implications here.
#dotnet8 #MVPBuzz #CodePerformance #dotnet
Code It Any Way You Want: Performance Difference Between Static and Non-Static Methods
The article explores the performance disparity between static and non-static methods, commonly recommended for efficiency by code analysis tools.
dotnettips.wordpress.com
February 17, 2025 at 3:09 PM
📢 Excited to announce the 4th edition of "Rock Your Code: Code & App Performance for Microsoft .NET"! 🚀 Dive into essential practices for optimizing code performance on Amazon: bit.ly/DotNetCodePe...
#MVPBuzz #dotnet8 #CodePerformance #dotnet
Rock Your Code: Code & App Performance for Microsoft .NET (4th Edition)
“Rock Your Code: Code & App Performance for Microsoft .NET” is a comprehensive guide that emphasizes the importance of optimizing code performance for enhanced user experience and b…
bit.ly
November 17, 2024 at 11:06 PM
Boost Enum Value Name Retrieval in .NET with an 18.6x efficiency gain and zero memory allocation! 🚀
#dotnet #dotnet8 #MVPBuzz #CodePerformance
General Performance Tip: Optimizing Enum Value Name Retrieval
The article delves into the optimization of Enum value name retrieval in .NET, comparing three approaches. It demonstrates that one of these methods is 16.13 times more efficient, with no memory al…
dotnettips.wordpress.com
May 1, 2025 at 3:10 PM
Simplify your LINQ expressions for cleaner code and a 1.9x performance boost in .NET 8! Learn how in this article.
#dotnet #dotnet8 #LINQ #CodePerformance #MVPBuzz
Microsoft .NET Code Analysis: Simplify LINQ Expressions
The article discusses simplifying LINQ expressions in source code by eliminating unnecessary Where() methods and placing predicates directly in FirstOrDefault(). This not only improves code readabi…
dotnettips.wordpress.com
November 21, 2024 at 4:03 PM
Boost .NET app performance by caching JsonSerializerOptions! 🚀 1.34x faster serialization + reduced memory allocation. Learn how to optimize & avoid #CA1869 violations.
#dotnet #codeperformance #MVPBuzz
Microsoft .NET Code Analysis: Optimizing JSON Serialization with Cached Options
XML has been replaced by JSON as the primary serialization format. Using the JsonSerializer in .NET offers performance advantages, particularly when caching JsonSerializerOptions. This method enhan…
dotnettips.wordpress.com
March 28, 2025 at 3:16 PM
Mastering substring extraction in C# with slicing! 🚀 Learn how to efficiently obtain substrings using the slice technique or the AsSpan() method. Check out the article here.
#dotnet #dotnet8 #MVPBuzz #CodePerformance
String Performance: Optimizing String Substring Extraction – Slicing vs. AsSpan()
The content presents an alternative approach to obtaining a substring using slicing with ReadOnlySpan and AsSpan() methods, delivering performance improvement of 2.4 times based on benchmark tests.…
dotnettips.wordpress.com
April 10, 2025 at 4:53 PM
🚀 Cloning Objects: Microsoft's JSON serialization tip boosts efficiency! 🔄 Benchmark results: Ref types 1.015x faster than records, and 1.24x more performant than value types. Check it out!
#dotnet #dotnet8 #MVPBuzz #CodePerformance
General Performance Tip: Cloning Various Types
The post discusses the process of cloning different types of objects, with Microsoft recommending the use of JSON serialization for this purpose. The author explores the performance differences in …
dotnettips.wordpress.com
April 11, 2025 at 3:12 PM
Unleash the power of efficient string manipulation in C#! 🚀 Learn to retrieve substrings like a pro with AsSpan() instead of Substring(). Boost performance by 44.6x with zero allocations! 💡 Check it out.
#dotnet #dotnet8 #CodePerformance #MVPBuzz
String Performance Microsoft .NET: Retrieving a Substring
Developers often use string.Substring() to extract a string portion. However, using string.AsSpan() instead can enhance performance significantly. Benchmarks show that AsSpan() is 44.6 times faster…
dotnettips.wordpress.com
January 22, 2025 at 2:34 PM
⚡️ Just dropped the 5th edition of Rock Your Code: Code & App Performance for Microsoft .NET — the ultimate performance riff for modern .NET devs. Real benchmarks, real speed, real power. Ready to make your code scream? 🤘📈
#dotnet10 #MVPBuzz #CodePerformance
dotnettips.wordpress.com/2026/01/01/r...
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 enhanci…
dotnettips.wordpress.com
February 3, 2026 at 5:45 PM
Dive into the world of .NET collection types! 🚀 This benchmark analysis compares performance across various types using for() and foreach(). Optimize your code and explore the findings here.
#dotnet #dotnet8 #MVPBuzz #CodePerformance
Collection Performance: A Comprehensive Benchmark Analysis of Collection Types in .NET Beyond Arrays and Lists
This article conducts a comprehensive benchmark analysis of various collection types in .NET beyond arrays and lists. It explores the performance of iteration methods, revealing significant differe…
dotnettips.wordpress.com
January 15, 2025 at 2:35 PM
When creating structures in .NET, it is advisable to override Equals and GetHashCode. This updated article illustrates the performance differences that arise when overriding these methods.
#dotNet #dotnet8 #CodePerformance #MVPBuzz
Reference Type & Structure Performance: Override Object Virtual Methods
This content discusses optimizing performance for reference types and structures in .NET. It emphasizes the importance of understanding memory allocation and recommends overriding methods and opera…
dotnettips.wordpress.com
November 27, 2024 at 4:01 PM
🚀 Boost your C# string performance! 🚀 Benchmark results show that using a character in Contains() is 3.57x faster than using a string. Check out the details and optimize your code.
#dotnet #dotnet8 #MVPBuzz #CodePerformance
String Performance: Checking for a Character
The article compares two methods of checking for the presence of a specific character in a string in C#. Benchmark results reveal that using a character in the search is 3.57 times more efficient t…
dotnettips.wordpress.com
February 7, 2025 at 2:31 PM
Discover the optimal way to pass parameters in C# functions - whether as arrays or using the params keyword. Learn more about performance and ease of use in our article!
#dotnet8 #MVPBuzz #CodePerformance #dotnet
Code It Any Way You Want: Optimal Parameter Passing – Array vs. Params Keyword
The article explores the performance differences between passing parameters as arrays or using the params keyword in C#. Despite similarities in speed, the author recommends using the params keywor…
dotnettips.wordpress.com
January 23, 2025 at 2:36 PM
🚀 For the first time in .NET history, .NET 10 is showing surprising performance wins in places you wouldn’t expect.
👉 Even counting elements in a collection has gotten a big boost!

Stay tuned to dotNetTips.com
— deep dive coming soon!
#RockYourCode #CodePerformance #MVPBuzz
September 22, 2025 at 7:07 PM
🚀 Boost your code's performance! 🚀 Avoid zero-length array allocations for efficient memory usage. Check out this article for insights and benchmark results: dotnettips.wordpress.com/2024/02/19/c...
#dotnet #dotnet8 #MVPBuzz #CodePerformance
dotnettips.wordpress.com
November 19, 2024 at 4:00 PM
Boost your code efficiency and readability with LINQ MaxBy() and MinBy() methods! 🚀 Easily find max/min values in a generic sequence based on a key selector. Check out this article for a quick guide.
#dotnet8 #MVPBuzz #CodePerformance #dotnet
Collection Performance: Leveraging LINQ MAXBy() and MINBy() for Efficient and Readable Code
The article explores the usage of LINQ’s MinBy() and MaxBy() methods, which efficiently return the objects with the minimum and maximum values in a sequence based on a specified key selector …
dotnettips.wordpress.com
February 6, 2025 at 2:34 PM
🚀 For the first time in .NET history, .NET 10 is showing surprising performance wins in places you wouldn’t expect.
👉 Even counting elements in a collection has gotten a big boost!

Stay tuned to dotNetTips.com
— deep dive coming soon!
#RockYourCode #CodePerformance #MVPBuzz
September 22, 2025 at 7:08 PM
If you are leveraging collection types in .NET 8, aside from arrays and List<>, explore this revised article revealing the performance variances during iteration using both for() and foreach().
#dotnet8 #CodePerformance #MVPBuzz #dotnet
Collection Performance: A Comprehensive Benchmark Analysis of Collection Types in .NET Beyond Arrays and Lists
This article conducts a comprehensive benchmark analysis of various collection types in .NET beyond arrays and lists. It explores the performance of iteration methods, revealing significant differe…
dotnettips.wordpress.com
November 17, 2024 at 11:06 PM
This revised article demonstrates the performance of iterating over a List<> of reference types using for(), while, do/while, foreach, and ForEach() in .NET 8.
#dotnet #dotnet8 #CodePerformance #MVPBuzz #collections
Collection Performance: Looping Over a Collection
There are four main ways to loop through a collection by using for(), foreach(), do() and while(). Let’s see which one of these methods are the most performant along with using the generic ForEach(…
dotnettips.wordpress.com
November 22, 2024 at 4:15 PM
There are several approaches to creating objects in .NET. Curious about the most performant method? Discover the answer in this article.
dotnettips.wordpress.com/2024/03/06/g...
#dotnet #CodePerformance #MVPBuzz
General Performance Tip: Creating an Object
The author explores various object creation methods in .NET, highlighting performance differences. While the conventional “new” keyword proves to be the most efficient, other approaches…
dotnettips.wordpress.com
June 4, 2026 at 3:23 PM