Skip to content

Commit 56834be

Browse files
committed
minor edits
1 parent d2a2541 commit 56834be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/profiling/perf-insights-string-concatenation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ ms.workload:
1313

1414
# Use StringBuilder for concatenations
1515

16+
This article describes performance insights for string concatenations.
17+
1618
## Cause
1719

1820
Calls to System.String.Concat are a significant proportion of the profiling data. Consider using the <xref:System.Text.StringBuilder> class to construct strings from multiple segments.
1921

20-
## Insight description
22+
## Performance insight description
2123

2224
A <xref:System.String> object is immutable. Therefore, any modification to the string creates a new string object and the garbage collection of the original. This behavior is the same whether you call String.Concat explicitly or use the string concatenation operators such as + or +=. Program performance can decrease if these methods are frequently called, such as when characters are added to a string in a tight loop.
2325

0 commit comments

Comments
 (0)