Skip to content

Use JsonMarshal.GetRawUtf8Value instead of JsonElement.GetRawText #46022

Open
@annelo-msft

Description

@annelo-msft

There are many places in Azure SDKs where we read and create models using the JsonElement.GetRawText method, for example, here.

Once we're able to upgrade to a version of STJ 9.*, we should be able to improve the performance of these model-reading routines pretty dramatically by calling JsonMarshal.GetRawUtf8Value instead.

@eiriktsarpalis, @m-nash, @jsquire, @KrzysztofCwalina FYI

Metadata

Metadata

Assignees

No one assigned

    Labels

    Azure.CoreClientThis issue points to a problem in the data-plane of the library.System.ClientModelBase Core library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions