You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently to deserialise RabbitMQ Incoming message, we do ByteString.ToArray(), which does memory copy
var evt = JsonSerializer.Deserialize<T>(message.Message.Bytes.ToArray(), SerializerOptions);
Describe the solution you'd like
Add ByteString ToReadOnlySpan() which will avoid memory copy if ByteString is compact
Describe alternatives you've considered
No alternative so far
Is your feature request related to a problem? Please describe.
Currently to deserialise RabbitMQ Incoming message, we do ByteString.ToArray(), which does memory copy
Describe the solution you'd like
Add ByteString ToReadOnlySpan() which will avoid memory copy if ByteString is compact
Describe alternatives you've considered
No alternative so far
Additional context
#7487
The text was updated successfully, but these errors were encountered: