Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor stringbuilder cleanup in QuerySqlGenerator #24155

Merged
merged 3 commits into from
Feb 15, 2021

Conversation

yesmey
Copy link
Contributor

@yesmey yesmey commented Feb 15, 2021

Remove redundant string allocation in IndentedStringBuilder.DoIndent. Stringbuilder already has a Append(char, repeat) implementation.

Change a couple of string concats to stringbuilder append for consistency with other parts of the code. Performance difference seems to be neglectable

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This is unlikely to have a significant perf advantage, since building the SQL happens once during query compilation and is reused after that.

@roji roji merged commit 3af0a3a into dotnet:main Feb 15, 2021
@roji
Copy link
Member

roji commented Feb 15, 2021

Thanks for your contribution!

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.

3 participants