Recently I went to a session given by Maarten Balliauw about memory management. In that talk, he mentioned the effect boxing and unboxing has on performance. He also talked about how a lot of strings can affect memory management. This got me thinking on the impact of boxing and unboxing when I format strings. What kind of impact does it have?
Tag: performance
Implementing a KeyedCollection in .NET Core
A coworker pointed out that when performance is important, a custom KeyedCollection
is pretty hard to beat. Let’s find out if this is true in the new and improved .net core framework.
Continue reading “Implementing a KeyedCollection in .NET Core”
String interpolation speed
A year, maybe two ago, I saw a talk of a colleague about performance. He compared await/async
with more traditional threading options, demonstrated how slow reflection is and compared the three string concatenation options: sum notation, string.Format()
and StringBuilder
. Now that string
interpolation is here, I was curious how fast is it compared to the other methods.