-
Notifications
You must be signed in to change notification settings - Fork 292
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
perf: Add cached SqlReferenceCollection find delegate and context objects #380
Conversation
Any feedback @cheenamalhotra @David-Engel ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay. Looks good to me. Can you merge the latest from master to refresh the build results?
d995624
to
dcff145
Compare
The changes look good to me, but I don't think this code path is even tested currently. The code coverage shall drop otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just gathered:
Please also consider make these changes to NetFx code.
|
When checking to see if there is a live command or reader associated with a connection (which in any sane program is almost always a negative result) a delegate and in some cases a closure are allocated. These can be avoided most of the time by using a static cached delegate and allowing reuse of a single context object if it is available.