Skip to content

Optimize BindParameterWithNoCheck - #528

Merged
SergeiPavlov merged 3 commits into
master-servicetitanfrom
BindParameterWithNoCheck
Oct 2, 2026
Merged

SergeiPavlov merged 3 commits into
master-servicetitanfrom
BindParameterWithNoCheck

Conversation

@SergeiPavlov

@SergeiPavlov SergeiPavlov commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Remove duplicated code
Probably a consequence of merge

@SergeiPavlov SergeiPavlov changed the title Optimize BindParameterWithNoCheck: avoid LINQ Optimize BindParameterWithNoCheck Oct 2, 2026

// Having this code as a separate method helps to avoid closure allocation during BindParameter call
// in case processedExpressions dictionary already contains a result.
private KeyExpression BindParameterWithNoCheck(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is interesting part. Why this method even existed if it could be easily rewritten like this?
Looks like a left over after some refactoring.

@SergeiPavlov SergeiPavlov Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@SergeiPavlov
SergeiPavlov merged commit 155ff6b into master-servicetitan Oct 2, 2026
62 checks passed
@SergeiPavlov
SergeiPavlov deleted the BindParameterWithNoCheck branch October 2, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants