You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize string manipulation in MySqlQueryStringFactory
- Replace string concatenation with StringBuilder for LEAST/GREATEST function evaluation
- Reduces allocations from N×3 to 1 per PrepareCommand call
- Processes replacements in single pass from start to end
- Eliminates repeated string copying overhead
- Updated PERFORMANCE_ANALYSIS.md to reflect fixes
Co-authored-by: renemadsen <[email protected]>
@@ -351,14 +370,15 @@ This is a best practice for reflection-heavy code. The change caches expensive r
351
370
352
371
## Conclusion
353
372
354
-
The .NET 10 migration introduced several performance concerns, with one critical bug that must be fixed immediately. The most significant performance issues relate to string manipulation and multiple-pass algorithms in hot code paths. However, some positive changes like reflection caching were also introduced.
373
+
The .NET 10 migration introduced several performance concerns, with one critical bug and several moderate issues that have now been addressed. The most significant performance issues related to string manipulation and potential infinite loops have been fixed in this commit.
- 1 moderate performance concern remaining (multi-pass evaluation in LEAST/GREATEST)
359
379
- Several minor concerns that may add up under high load
360
380
361
-
**Recommendation**: Address the critical bug immediately, then profile real-world workloads to determine if the moderate issues cause measurable performance degradation before optimizing.
381
+
**Recommendation**: The critical bug and primary performance issue have been resolved. Profile real-world workloads to determine if the remaining moderate issue (multi-pass LEAST/GREATEST evaluation) causes measurable performance degradation before further optimization.
0 commit comments