Skip to content

Debug Diagnostics always allocates StringBuilder with new optimized String Interpolation #57526

Description

@snakefoot

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)));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions