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
What language does this apply to?
If it's a proto syntax change, is it for proto2 or proto3?
If it's about generated code change, what programming language?
Describe the problem you are trying to solve. ToByteArray in C# allocates a buffer for the message. This can lead to performance impact and heavy GC load at scale.
Describe the solution you'd like
It would be great if ToByteArray could use pooled memory to avoid allocations. It would be great if Grpc could also be updated to use this version of ToByteArray.
Describe alternatives you've considered
I have considered manually serializing the message with pooled memory, but this seems better handled by Protobuf itself.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
What language does this apply to?
If it's a proto syntax change, is it for proto2 or proto3?
If it's about generated code change, what programming language?
Describe the problem you are trying to solve.
ToByteArray
in C# allocates a buffer for the message. This can lead to performance impact and heavy GC load at scale.Describe the solution you'd like
It would be great if
ToByteArray
could use pooled memory to avoid allocations. It would be great if Grpc could also be updated to use this version ofToByteArray
.Describe alternatives you've considered
I have considered manually serializing the message with pooled memory, but this seems better handled by Protobuf itself.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: