Boxing impact on string concatenation

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?

Continue reading “Boxing impact on string concatenation”

Advertisements

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.

Continue reading “String interpolation speed”