dotnet / dotnet/SqlClient

Question: Lazy loading of retry fields in SQLConnection class

Open
#1,147 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
989
Forks
340
Avg merge
4d 18h
Merged PRs (30d)
69

Description

Do you think if it is worth moving all fields in SQLConnection class responsible for retries into a separate class worth complexity ?
![image](https://user-images.githubusercontent.com/12857389/124346337-df490e00-dbe6-11eb-9295-bc73d347682c.png)

I suppose retires are not so often and we can extract them in a class and only initialize it when a real retry should be done.
This will reduce memory footprint of every instance by several bytes :), but as we constantly create SQLConnections ......

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.