Skip to content

Repeatedly initialize the static variables s_defaultSimpleConverters and s_defaultFactoryConverters when calling the method GetConverter of JsonSerializerOptions #65770

Closed
@dczuo

Description

@dczuo

Description

Reproduction Steps

According to the referenced code

Expected behavior

Variables s_defaultSimpleConverters and s_defaultFactoryConverters are initialized only once

Actual behavior

Variables s_defaultSimpleConverters and s_defaultFactoryConverters are repeatedly initialized with each call

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Text.JsonenhancementProduct code improvement that does NOT require public API changes/additionstenet-performancePerformance related issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions