Skip to content

Should avoid boxing of value types when using string interpolation in a StringBuilder #116731

Answered by stephentoub
friflo asked this question in General

You must be logged in to vote

The line that boxes is at:

That boxing doesn't happen in optimized tier 1 as it gets optimized out. If you're seeing allocation from that, you're likely looking at umoptimized and/or tier 0.

Replies: 2 comments 3 replies

You must be logged in to vote
0 replies

You must be logged in to vote
3 replies
@friflo

@friflo

@stephentoub

Answer selected by friflo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants