nats.net icon indicating copy to clipboard operation
nats.net copied to clipboard

Improve netstandard SHA performance

Open mtmk opened this issue 8 months ago • 0 comments

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

mtmk avatar Jun 18 '24 13:06 mtmk