Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Consider the TryWrite pattern, optimistically assuming you have enough space rather than pre-computing #2294

@ahsonkhan

Description

@ahsonkhan

For context: #2291 (comment)

Investigate if certain JsonWriter APIs become faster if we skip the pre-compute bytes needed step and use the TryWrite pattern.

I think we should write everything with Try methods, as in most cases the buffer will be large enough.

cc @KrzysztofCwalina

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions