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?
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.
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,
StringBuilder. Now that
string interpolation is here, I was curious how fast is it compared to the other methods.