Skip to content

Add code to flush JSON writer after root-level fast-path serialization - #54502

Merged
layomia merged 1 commit into
dotnet:mainfrom
layomia:Flush
Jun 21, 2021
Merged

layomia merged 1 commit into
dotnet:mainfrom
layomia:Flush

Conversation

@layomia

@layomia layomia commented Jun 21, 2021

Copy link
Copy Markdown
Contributor

Helps avoid code patterns like this: aspnet/Benchmarks#1683 (comment).

@layomia layomia added this to the 6.0.0 milestone Jun 21, 2021
@layomia layomia self-assigned this Jun 21, 2021
@layomia
layomia requested a review from jozkee as a code owner June 21, 2021 16:12
@ghost

ghost commented Jun 21, 2021

Copy link
Copy Markdown

Tagging subscribers to this area: @eiriktsarpalis, @layomia
See info in area-owners.md if you want to be subscribed.

Issue Details

Helps avoid code patterns like this: aspnet/Benchmarks#1683 (comment).

Author: layomia
Assignees: layomia
Labels:

area-System.Text.Json

Milestone: 6.0.0

@steveharter steveharter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes sense; only source-gen affected; the existing non-sourcegen code already calls Flush() at the end of the root Serialize() method

@layomia
layomia merged commit 0cdd423 into dotnet:main Jun 21, 2021
@layomia
layomia deleted the Flush branch June 21, 2021 22:14
@ghost ghost locked as resolved and limited conversation to collaborators Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants