Home New Trending Search
About Privacy Terms
#
#CodePerformance
Posts tagged #CodePerformance on Bluesky
Preview
Microsoft .NET Code Analysis: When CountAsync() Outperforms AnyAsync() in .NET The article critiques code analysis rule CA1828 in Microsoft .NET, which suggests using AnyAsync() over CountAsync() for checking item existence in IQueryable collections. Benchmark results indicat…

Think AnyAsync() is always faster than CountAsync()? Think again. 🚀 Benchmark results for CA1828 in .NET may surprise you! Learn when CountAsync() outperforms AnyAsync() and how to adjust your code for optimal performance.
dotnettips.wordpress.com/2025/03/12/m...
#dotNET #CodePerformance #MVPBuzz

0 0 0 0
Preview
String Performance: The Fastest Way to Get a String’s Length The article highlights the importance of using efficient methods for checking if a string is empty or null, emphasizing the performance benefits and exception prevention of using `string.IsNullOrEm…

There are several ways to get a string’s character count in .NET… but they don’t all perform the same. Span, Length, LINQ—each tells a different story. 👀
See which approach comes out on top 👇
#dotnet10 #MVPBuzz #CodePerformance
dotnettips.wordpress.com/2021/09/22/s...

0 0 0 0
Preview
Boost Your .NET Projects: Efficient Byte Array Conversions When working with byte arrays in performance-critical applications, every nanosecond and allocation counts. Fortunately, in .NET, there is a class that provides several high-performance methods tha…

🚀 Boost your .NET 10 projects with faster, allocation-free byte array conversions! Learn how to to write cleaner, high-performance code for real-time data and binary processing.
#dotnet #dotnet10 #CodePerformance #RockYourCode
dotnettips.wordpress.com/2025/09/07/b...

0 0 0 0
Preview
General Performance Tip: Creating an Object In this investigation of object creation in .NET, various methods were explored, including “new” keyword, Activator.CreateInstance, and RuntimeHelpers.GetUninitializedObject.

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

0 0 0 0
Preview
Optimizing Collection Examination: A Comparative Analysis of Predicate Methods in C# The article explores four methods for examining items in a collection using predicates, with a focus on performance. A Twitter poll revealed that over 50% of developers favored the LINQ Any() metho…

🚀 Dive into optimizing collection examination! 🔄 Explore four predicate methods, including LINQ Any(), and find out which one developers voted for. Check out the comparative analysis here: dotnettips.wordpress.com/2024/05/27/o...
#dotnet8 #MVPBuzz #CodePerformance #dotnet

0 0 0 0
Preview
Collection Performance: Adding Items To a Dictionary The excerpt from “Rock Your Code” discusses two methods for adding items to a Dictionary in .NET: Add() and TryAdd().

🎸 Don’t let your dictionary adds turn into performance feedback squeals!
Master the right patterns for adding items in .NET collections and keep your code tight and screaming with speed.
Rock the performance 👇
#dotnet #dotnet10 #MVPBuzz #CodePerformance
dotnettips.wordpress.com/2024/01/19/c...

0 0 0 0
Preview
Code It Any Way You Want: Expression-Bodied Methods vs. Traditional Methods The article discusses the use of expression-bodied methods in .NET as an alternative to traditional methods for creating simple functions. It presents a comparison between the two methods in terms …

Discover the efficiency of expression-bodied methods vs. traditional methods in .NET! 💻🔍 Learn more about their syntax and performance in this insightful article. dotnettips.wordpress.com/2024/05/21/c...
#dotnet #MVPBuzz #CodePerformance #dotnet

0 0 0 0
Preview
Code It Any Way You Want: Performance Difference Between Static and Non-Static Methods Most code analysis tools advocate for static methods due to perceived performance benefits. However, benchmarks indicate that non-static methods often outperform static ones despite avoiding instan…

Discover the surprising truth about static vs. non-static methods' performance in coding! 🔍📊 Check out the insightful findings and implications here. dotnettips.wordpress.com/2024/05/16/c...
#dotnet10 #MVPBuzz #CodePerformance #dotnet

0 0 0 0
Preview
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.

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: dotnettips.wordpress.com/2024/04/10/s...
#dotnet #dotnet10 #MVPBuzz #CodePerformance

0 0 0 0
Preview
Optimizing Hash Code Generation in .NET: A Performance Comparison This article discusses the importance of hash codes in programming and optimization techniques in Microsoft .NET. It explores different methods for generating hash codes, with RuntimeHelpers.GetHas…

Want faster hash code generation in .NET? Explore how RuntimeHelpers.GetHashCode() can boost your app's performance by up to 87x! Learn more and check out the new FastGetHashCode() method in Spargine. 🔥
dotnettips.wordpress.com/2024/09/08/o...
#dotnet #CodePerformance #MVPBuzz

0 0 0 0
Preview
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#.

Are you still checking characters in strings the old way in .NET? 👀
There’s a smarter, cleaner approach that can make your code faster and more efficient.
Read the full breakdown here: 🔗
#dotnet #dotnet10 #MVPBuzz #CodePerformance
dotnettips.wordpress.com/2024/05/08/s...

0 0 0 0
Preview
Boosting Performance with Copilot Slash Commands: Unleashing New Speed in Spargine In the article “Unleashing the Power of Copilot: Enhancing Visual Studio with New Slash Commands,” the author discusses utilizing Copilot to improve the performance of the open-source p…

Boost your .NET projects! Discover how Copilot's new slash commands transformed performance in Spargine by up to 1,360x. Learn more about these enhancements and how you can apply them.
#dotnet #VisualStudio #CodingTips #Copilot #CodePerformance
dotnettips.wordpress.com/2024/07/28/b...

0 0 0 0
Preview
Code It Any Way You Want: Performance Impact of Sealing Attributes The excerpt discusses the recommendation to seal classes in .NET for design clarity and adherence to OOP principles, while noting that benchmark tests reveal non-sealed classes perform slightly bet…

Curious about the performance impact of sealing attributes? 💻💡 Learn why Microsoft recommends sealing them and how it affects your code's efficiency. Check out my insights here: dotnettips.wordpress.com/2024/05/02/c...
#dotnet10 #dotnet #MVPBuzz #CodePerformance

0 0 0 0
Preview
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…

⚡️ 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...

2 0 0 0
Preview
General Performance Tip: Choosing Between Conditional Statements – If, Switch, and Switch Expression Performance in C# This article compares the performance of conditional if statements, switch statements, and switch expressions in C# code, with a focus on data retrieval.

🚀 Boost your C# coding efficiency! 🖥️ Explore the performance differences between conditional if statements, switch statements, and switch expressions. 📊 Check out the insightful analysis here: dotnettips.wordpress.com/2024/05/03/g...
#dotnet #dotnet8 #MVPBuzz #CodePerformance

0 0 0 0
Preview
String Performance: Retrieving a Substring The post discusses optimizing string concatenation in .NET by using the Span type, which significantly enhances performance and reduces memory allocation.

If your .NET code relies on Substring(), this article could change how you think about string performance. ✨
Full explanation here.
#dotnet #dotnet10 #CodePerformance #MVPBuzz
dotnettips.wordpress.com/2024/01/22/s...

0 0 0 0
Preview
Boosting Performance with Copilot Slash Commands: Unleashing New Speed in Spargine In the article “Unleashing the Power of Copilot: Enhancing Visual Studio with New Slash Commands,” the author discusses utilizing Copilot to improve the performance of the open-source p…

Boost your .NET projects! Discover how Copilot's new slash commands transformed performance in Spargine by up to 1,360x. Learn more about these enhancements and how you can apply them.
dotnettips.wordpress.com/2024/07/28/b...
#dotNET #VisualStudio #CodingTips #Copilot #CodePerformance

0 0 0 0
Preview
String Performance: The Fastest Way to Get a String’s Length Retrieving the character count of a string in .NET has various methods: using Span with Length, Length, or Enumerable.Count(). This article will prove which is the fastest method.

String performance in .NET:
One tiny choice. Big runtime implications.
If you care about clean, fast code, you’ll want to read this.
#dotnet10 #CodePerformance #MVPBuzz
dotnettips.wordpress.com/2026/01/25/s...

1 1 0 0
Preview
General Performance Tip: Can Pattern Matching Improve Performance? The article discusses the potential performance improvements gained by leveraging pattern matching in .NET. It contrasts a traditional method for rounding numbers with a more refined version employ…

📈 Can pattern matching make your .NET code faster? This performance tip breaks it down with real examples — a must-read for devs!
#dotnet10 #MVPBuzz #CodePerformance
dotnettips.wordpress.com/2024/04/19/g...

0 0 0 0
Preview
Microsoft .NET Code Analysis: Creating Empty Arrays Arrays are popular in .NET for their efficiency. The .NET team recommends avoiding zero-length allocations, opting instead for Array.Empty() or using the [] expression for creating empty arrays. Th…

🚀 Boost your .NET code efficiency! Learn best practices for array allocation and improve performance with tips from the .NET team. Check it out!
#dotnet10 #MVPBuzz #CodePerformance #dotnet
dotnettips.wordpress.com/2025/03/05/m...

0 0 0 0
Preview
Collection Performance: High-Performance Collection Randomization in .NET The article examines shuffling options in .NET 8, highlighting the performance of three APIs: LINQ.Shuffle(), Random.Shuffle(), and RandomNumberGenerator.Shuffle().

Shuffling collections isn’t a toy problem. 🪀
In .NET 10, the wrong shuffle can quietly dominate your runtime.
I ran the benchmarks and analyzed the results.
#dotnet10 #MVPBuzz #Collections #CodePerformance
dotnettips.wordpress.com/2026/01/18/c...

0 0 0 0
Preview
Comparing Type Checking Methods in .NET: Performance vs. Readability In .NET, type checking methods include GetType(), the is keyword, IsAssignableFrom(), and the as keyword. Each method varies in readability and performance.

Type checking in .NET: What’s best—`GetType()`, `is`, `as`, or `IsAssignableFrom()`? Each has trade-offs in readability and performance. Choose wisely! 🧐
dotnettips.wordpress.com/2025/04/06/c...
#dotNET #CodingTips #dotNetTips #MVPBuzz #CodePerformance

0 0 0 0
Preview
Leveraging Span-Based String Concatenation for Improved Performance The excerpt from “Rock Your Code” emphasizes the importance of efficient string concatenation in .NET. It highlights the advantages of using the Span type over traditional methods, demo…

Still using Substring() + + for string concatenation?
There’s a faster, allocation-free way with Span.
Benchmarks show a 43× performance boost.
Read on 👇
#MVPBuzz #dotnet10 #CodePerformance
dotnettips.wordpress.com/2026/01/04/l...

0 0 0 0
Preview
Serializing Objects: Efficient Serialization and Deserialization of Collections with JsonSerializer The article demonstrates the ease of serializing and deserializing collections using JsonSerializer.

💡 Learn efficient collection serialization/deserialization using JsonSerializer! Serialize with ease & achieve faster performance, especially with record types. Check out the insightful benchmarks in our latest article!
dotnettips.wordpress.com/2024/06/03/s...
#MVPBuzz #codeperformance

0 0 0 0
Preview
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…

⚡️ 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...

0 0 0 1
Preview
Unlock Performance Gains in .NET: The Power of Custom Comparers This article highlights the importance of custom comparers in .NET for enhancing application performance when sorting and ordering collections. It discusses the flexibility and control that custom …

Surprising .NET performance gains? 🤯 Using custom comparers in sorting & LINQ can be over 4x faster—or 20x slower if done wrong! Discover benchmarks, pitfalls, and best practices to supercharge your apps. 🚀 Read more here.
dotnettips.wordpress.com/2025/03/02/u...
#dotnet #codeperformance #MVPBuzz

0 0 0 0
Preview
Optimizing Array Performance in .NET: Getting the Most from ArrayPool ArrayPool optimizes memory usage by providing a thread-safe pool of reusable arrays, significantly reducing allocations and garbage collection pressure, especially in high-performance scenarios. It…

Allocations slowing you down? I walk through using ArrayPool<T> to cut churn and boost throughput—plus results from Spargine’s PasswordHasher. Quick wins inside 🔧⚡
@dot.net #dotnet10 #CodePerformance #MVPBuzz
dotnettips.wordpress.com/2025/10/01/o...

0 0 0 0
Preview
dotNetDave Story: The Critical Importance of Addressing Performance Before Product Release dotNetDave Story: The Critical Importance of Addressing Performance Before Product Release,’ I recount a personal anecdote from my time at a San Diego-based company, highlighting the conseque…

🚀 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

0 0 0 0
Preview
General Performance Tip: Generating Random Numbers .NET’s Random type has been a popular choice for generating random numbers. However, using RandomNumberGenerator for this purpose can result in a six-fold performance improvement, as shown in…

.NET developers, are you aware of the most efficient approach to generate random numbers in .NET 8? Explore the latest version of this article to uncover the answer!
dotnettips.wordpress.com/2024/03/27/g...
#dotnet #CodePerformance #dotnet8 #MVPBuzz

0 0 0 0
Preview
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…

Boost .NET app performance by caching JsonSerializerOptions! 🚀 1.34x faster serialization + reduced memory allocation. Learn how to optimize & avoid #CA1869 violations.
dotnettips.wordpress.com/2025/02/26/m...
#dotnet #codeperformance #MVPBuzz

0 0 0 0