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.
Category: Coding Standards
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: Encoding and Decoding Strings
Encoding and decoding strings to and from a byte[] is used a lot in programming. Performance results are for using The formatting options are ASCII, Unicode, UTF8, and UTF32.
String Performance: Combining Strings with the StringBuilder
When concatenating many strings, especially in a loop, using the StringBuilder class is usually more performant and uses less memory.
You must be logged in to post a comment.