-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Query Execution
-
Fully Compatible
-
v8.0
-
200
The string construction here is not efficient because it reallocates a new string every for every += operator along with a copy.
To be maximally efficient, we could have the caller pass in a StackStringBuilder to getPlanSummary() to avoid any memory allocations in most cases. Otherwise, a regular StringBuilder should be better than what exists currently.