KEMBAR78
Minor stringbuilder cleanup in QuerySqlGenerator by yesmey · Pull Request #24155 · dotnet/efcore · GitHub
Skip to content

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