Skip to content

Fix JSON perf regressions reported by #73242. - #73306

Merged
eiriktsarpalis merged 1 commit into
dotnet:mainfrom
eiriktsarpalis:fix-json-perf-regression
Aug 3, 2022
Merged

Fix JSON perf regressions reported by #73242.#73306
eiriktsarpalis merged 1 commit into
dotnet:mainfrom
eiriktsarpalis:fix-json-perf-regression

Conversation

@eiriktsarpalis

Copy link
Copy Markdown
Member

I was able to isolate the perf regression to using object initializer syntax in the state structs introduced in #72789. Not sure why, @EgorBo any insights?

Fix#73242.

@eiriktsarpaliseiriktsarpalis added this to the 7.0.0 milestone Aug 3, 2022
@eiriktsarpaliseiriktsarpalis self-assigned this Aug 3, 2022
@ghost

ghost commented Aug 3, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis
See info in area-owners.md if you want to be subscribed.

Issue Details

I was able to isolate the perf regression to using object initializer syntax in the state structs introduced in #72789. Not sure why, @EgorBo any insights?

Fix #73242.

Author:eiriktsarpalis
Assignees:-
Labels:

area-System.Text.Json

Milestone:-

@EgorBo

Copy link
Copy Markdown
Member

@eiriktsarpalis interesting, I am able to reproduce it locally, it has a noticeably perf hit because these structs are quite big.

@eiriktsarpalis
eiriktsarpalis merged commit 5ed2442 into dotnet:mainAug 3, 2022
@eiriktsarpalis
eiriktsarpalis deleted the fix-json-perf-regression branch August 3, 2022 20:34
@DrewScoggins

DrewScoggins commented Aug 9, 2022

Copy link
Copy Markdown
Member

We are seeing improvements from this change on
win-x64: dotnet/perf-autofiling-issues#7177
win-x86: dotnet/perf-autofiling-issues#7196
win-amd64: dotnet/perf-autofiling-issues#7224

@kunalspathak

kunalspathak commented Aug 11, 2022

Copy link
Copy Markdown
Contributor

Linux/arm64 improvement: dotnet/perf-autofiling-issues#7248
alpine-x64 improvement: dotnet/perf-autofiling-issues#8108

@ghostghost locked as resolved and limited conversation to collaborators Oct 2, 2022
@eiriktsarpaliseiriktsarpalis added the tenet-performance Performance related issue label Nov 25, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regressions in System.Text.Json.Serialization.Tests.ReadJson

6 participants

@eiriktsarpalis@EgorBo@DrewScoggins@kunalspathak@steveharter@SupinePandora43