Skip to content

Improve string marshalling performance by using performant .NET APIs #509

Description

@Perksey

The following discussion from #505 should be resolved:

Please forward to Utf8.FromUtf16 on >= netcore3.0
Something like

#if NET5_0Debug.Assert(Utf8.FromUtf16(input,span,out_,outconvertedBytes,true,true)==OperationStatus.Done);
#endif

We probably don't care for the returned status, it can only be done, or theoretically, DestinationTooSmall but that can only happen if GetMaxSizeOf fails.
(If you don't think this is fit for this PR, do just reference this in a new issue, and I'll get back to it asap, we absolutely need to track this though, perf of the string marshalling is miserable)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions