-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Closed
Copy link
Labels
area-System.Text.Jsonbacklog-cleanup-candidateAn inactive issue that has been marked for automated closure.An inactive issue that has been marked for automated closure.tenet-performancePerformance related issuePerformance related issue
Milestone
Description
runtime/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.cs
Lines 332 to 343 in d4b06b1
| internal JsonClassInfo GetOrAddClass(Type classType) | |
| { | |
| _haveTypesBeenCreated = true; | |
| // todo: for performance and reduced instances, consider using the converters and JsonClassInfo from s_defaultOptions by cloning (or reference directly if no changes). | |
| if (!_classes.TryGetValue(classType, out JsonClassInfo? result)) | |
| { | |
| result = _classes.GetOrAdd(classType, new JsonClassInfo(classType, this)); | |
| } | |
| return result; | |
| } |
cc @steveharter
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.Text.Jsonbacklog-cleanup-candidateAn inactive issue that has been marked for automated closure.An inactive issue that has been marked for automated closure.tenet-performancePerformance related issuePerformance related issue