nats-io / nats.net.v2

Full Async C# / .NET client for NATS
https://nats-io.github.io/nats.net.v2/
Apache License 2.0
202 stars 40 forks source link

Improve netstandard SHA performance #519

Open mtmk opened 3 weeks ago

mtmk commented 3 weeks ago

Where this gets tricky is, if the object is above a certain size, grab a pooled array and copy the contents over.

-OR-, it might be better to pay the small price of something like CommunityToolkit.HighPerformance's ReadOnlyMemory stream adapter to avoid the copies.

see also https://github.com/nats-io/nats.net.v2/pull/513#discussion_r1642045106