-
Notifications
You must be signed in to change notification settings - Fork 3
Dispoing JsonDocument #8
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
Dispoing JsonDocument #8
Conversation
|
@eli-darkly Looks like reviewers aren't automatically assigned |
|
@JeffAshton No need to assign reviewers or @-mention anyone— the team is alerted to every GitHub issue and PR. Just wasn't able to look at this on Friday, sorry. Looking now. |
|
Looks good - thanks for catching this. We should be able to put out a patch release of this and of the SDK within the next couple days. |
|
@JeffAshton How high a priority is this patch for you? The reason I ask is that we are currently waiting on a new code-signing certificate which we'd like to transition to before the old one expires, and it might be simplest to postpone the next release a few days so we don't have to immediately do an extra release just to use the new cert. I feel like the scenario addressed in this PR is not a common one— it would only be hit in applications that are using the |
Being preemptive here. I've seen performance benefits in other applications from disposing. It was non obvious to me when I started using |
|
Yeah, to be clear, even though the SDK does use |
|
@JeffAshton The new code-signing certificate is taking longer than expected so I'm going to proceed with the planned .NET SDK release now. |
Disposing JsonDocument as per documentation:
https://docs.microsoft.com/en-us/dotnet/api/system.text.json.jsondocument?view=net-5.0