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

Remove duplicated ForceColumnEncryption property check #2166

Merged
merged 1 commit into from Nov 7, 2023

Conversation

Wraith2
Copy link
Contributor

@Wraith2 Wraith2 commented Sep 22, 2023

Writing parameter is done on every execution because there are always server parameters even if there aren't user parameters. I noticed this duplicated call to parameter.ForceColumnEncryption while profiling something else and since it's a hot path I thought it would be worth removing the second call to save a few cycles.

@codecov
Copy link

codecov bot commented Sep 22, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
.../netcore/src/Microsoft/Data/SqlClient/TdsParser.cs 68.33% <100.00%> (-0.38%) ⬇️
...nt/netfx/src/Microsoft/Data/SqlClient/TdsParser.cs 71.25% <100.00%> (+0.01%) ⬆️

... and 11 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@JRahnama JRahnama self-requested a review September 26, 2023 18:42
@David-Engel David-Engel added this to the 5.2.0-preview4 milestone Oct 20, 2023
@DavoudEshtehari DavoudEshtehari added 💡 Enhancement New feature request 📈 Performance Use this label for performance improvement activities labels Oct 31, 2023
@DavoudEshtehari DavoudEshtehari added this to In progress in SqlClient v5.2 via automation Oct 31, 2023
SqlClient v5.2 automation moved this from In progress to Reviewer approved Nov 7, 2023
@DavoudEshtehari DavoudEshtehari merged commit 7f203dd into dotnet:main Nov 7, 2023
132 checks passed
SqlClient v5.2 automation moved this from Reviewer approved to Done Nov 7, 2023
@Wraith2 Wraith2 deleted the remove-foreceencrypt branch November 7, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Enhancement New feature request 📈 Performance Use this label for performance improvement activities
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants