Skip to content

Conversation

@deepsource-autofix
Copy link
Contributor

This PR replaces instances of StringBuilder.Append(string) when appending single characters with the more efficient Append(char) overload. By using char literals instead of one-character strings, we reduce unnecessary string allocations and improve performance.

  • Consider using more appropriate overload StringBuilder.Append(char): In multiple spots the code was calling Append(" ") or Append("&"), which allocates a new string for each call. These have been replaced with Append(' ') and Append('&') respectively to leverage the Append(char) overload and cut down on memory usage.

This Autofix was generated by AI. Please review the change before merging.

This PR replaces instances of StringBuilder.Append(string) when appending single characters with the more efficient Append(char) overload. By using char literals instead of one-character strings, we reduce unnecessary string allocations and improve performance.

- Consider using more appropriate overload `StringBuilder.Append(char)`: In multiple spots the code was calling `Append(" ")` or `Append("&")`, which allocates a new string for each call. These have been replaced with `Append(' ')` and `Append('&')` respectively to leverage the `Append(char)` overload and cut down on memory usage.

> This Autofix was generated by AI. Please review the change before merging.
@deepsource-io
Copy link

deepsource-io bot commented Sep 20, 2025

Here's the code health analysis summary for commits 97f2ffb..2701dd0. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource SQL LogoSQL✅ SuccessView Check ↗
DeepSource Docker LogoDocker✅ SuccessView Check ↗
DeepSource C# LogoC#✅ Success
🎯 3 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@StuartFerguson StuartFerguson merged commit e1030fa into master Sep 21, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants