Collection Performance: Creating Immutable Sorted Collections

ImmutableSortedDictionary and ImmutableSortedSet are available as immutable sorted collections. Performance benchmarks reveal that ImmutableSortedSet outperforms ImmutableSortedDictionary in both scenarios. Using CreateRange() is more efficient than CreateBuilder() with foreach(). However, employing a List with the Sort() method proves to be the most efficient option.

Collection Performance: Sorting With LINQ

There are several ways to sort a collection in .NET and one of them is by using LINQ. Two main extension methods are part of LINQ that can be used to easily sort collections.

DotNetDave Rocks On .NET Live

For the first time, I will be on the live show On .NET Live, on August 22nd, 2022 at 9 am PST. I'm so excited to chat about two of my favorite subjects, code quality, and code performance! This is going to be fun.

Speed Up Logging in .NET 6

In a recent article, I wrote and demonstrated how to speed up logging using LoggerMessage in .NET. Not long after I wrote that article, I learned of an even faster way to log using .NET 6. This article will show you how you can use this new way of logging and show the results of benchmark tests.

Coding Faster with dotNetTips Spargine 6: Benchmarking Your Code

Benchmarking is the process of measuring and baselining the performance of your code. It helps identify bottlenecks in comparing the performance of different algorithms or approaches that target the same set of problems and choosing the one that has optimal time and memory consumption. There are many ways to code the same thing in .NET, so how do you know which one is more performant? There can be big differences that not only affect performance but memory too. This article describes how I use BenchmarkDotNet to benchmark my code.

Rockin’ The Code World with dotNetDave – Guest: Jeremy Likness

Join us live on Saturday, June 11th at 10:00 PST on C# Corner Live for show #58 where for the second time, my guest will be Jeremy Likeness. 

Rockin’ The Code World with dotNetDave – Guest: Jiří Činčura

Join me live on Saturday, May 14th at 10:00 PST on C# Corner Live for show #57 where my guest will be Jiří Činčura.  

Speed Up Logging in .NET

The team at Microsoft has added another way to do logging that touts that it’s faster than using the old new way (ILogger). In this article, I will discuss the old way of logging and introduce the new LoggerMessage class. Updated January 2023.

dotNetDave Rocks the Philly Code Camp 2022

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.

Everything You Want to Know About the Record Type in .NET: Performance

In my article titled Everything You Want to Know About the Record Type in .NET 5… But Were Afraid to Ask that I wrote in early 2021, I introduced readers to the new record type introduced in .NET 5 and why, as a class author, I like it. In this article, I will drill down into the performance using the record type.