关于[Reducing allocations by caching with StringBuilderCache: A deep dive on StringBuilder - Part 5]的摘要:
So far in this series we've looked in detail at StringBuilder, and how it works under-the-hood. In this post I look at a different type, the internal StringBuilderCache type. This type is used internally in .NET Core and .NET Framework to reduce the cost of creating a StringBuilder. In this post I describe why it's useful, run a small benchmark to see its impact, and walk through the code to show how it works.