- Notifications
You must be signed in to change notification settings - Fork5.2k
Improve perf of JsonValue.CreateFromElement by calling ValueKind once#104108
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Improve perf of JsonValue.CreateFromElement by calling ValueKind once#104108
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Tagging subscribers to this area: @dotnet/area-system-text-json,@gregsdennis |
src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonValue.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonValue.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonValue.cs OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
eiriktsarpalis left a comment
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.
Thanks!
Following#104048 (comment)
JsonElement.ValueKindactually does quite a few operations as described below. This PR is a small change so that it's only called once.cc@eiriktsarpalis