When using the old string.Format then it would make use of internal StringBuilder-pool.
Now it always allocates a new StringBuilder, and throws it away:
|
_stringBuilderHandler = new StringBuilder.AppendInterpolatedStringHandler(literalLength, formattedCount, new StringBuilder(DefaultInterpolatedStringHandler.GetDefaultLength(literalLength, formattedCount))); |
When using the old string.Format then it would make use of internal StringBuilder-pool.
Now it always allocates a new StringBuilder, and throws it away:
runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Debug.cs
Line 301 in dfd618d