-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-System.Text.Jsonhelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorstenet-performancePerformance related issuePerformance related issue
Milestone
Description
Description
System.Text.Json.JsonProperty.WriteTo() uses the Name property to write name and value.
This realises the property name as a string, causing an allocation.
runtime/src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonProperty.cs
Line 120 in 0a50fef
writer.WritePropertyName(Name); |
It would be preferable to write the property name using the underlying JsonElement and avoid the allocation.
gregsdennis
Metadata
Metadata
Assignees
Labels
area-System.Text.Jsonhelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributorstenet-performancePerformance related issuePerformance related issue