The dotNetDave For Those About to Code: Worldwide Tour will be at the Philly Code Camp in Philadelphia, PA on March 4th. I hope you will join me at this meeting.
Tag: Code Performance
Collection Performance: How Do You LINQ?
Way, way back in 2007, the Language-Integrated Query (LINQ) was introduced as part of .NET 3.5. Since LINQ was new, I spent some time learning how to create the most performant queries, especially for Entity Framework. I learned back then how the query is written can affect performance. In this article, I will show the most performant way to write queries for a collection of objects.
Internationalization and Localization Performance: Collection Count() & Any() with Predicate
In this article, I will show you how to properly use Any() or Count() with collections taking globalization into account..
Internationalization and Localization Performance: Comparing Strings
When formatting strings its important to use CurrentCulture when displaying strings to the user. This article shows the performance of the different choices.
Internationalization and Localization Performance: String Validation with Equals()
When formatting strings its important to use CurrentCulture when displaying strings to the user. This article shows the performance of the different choices.
Internationalization and Localization Performance: Formatting Strings
Taking globalization into account when displaying strings to the user means that they are properly formatted for their language and locale. This article shows the performance for string.Format().
Serializing Objects Performance: XML Serialization
XML serialization has been around ever since .NET was released since it was so widely used back then. It’s still widely used, especially for legacy applications and services, even iTunes still uses XML to store library information. Benchmark results are for .NET 5 & 6.
Reference Type & Structure Performance: Expanded & Expression Bodied Methods
A newer way of creating simple methods in .NET is by using expression-bodied methods. This article shows which method is more performant.
Reference Type & Structure Performance: Normal vs Static Methods
Most of the code analysis tools, including tools from Microsoft, recommends creating static methods if possible, stating performance as one of the reasons. But are static methods more performant than normal non-static methods? This articles shows your which is more performant!
String Performance: Checking for a Substring
There are three main methods to check for a string, within a string. Those methods, from String, are: Contains(), StartsWith(), and EndsWith(). This article shows the performance differences between these methods.
You must be logged in to post a comment.