Access the underlying data in a repeated field in c#

134 views
Skip to first unread message

Anders G

unread,
Jan 4, 2021, 12:10:17 PM1/4/21
to Protocol Buffers
I've noticed that when using a repeated field in a streaming service in gRPC that the application consumes a LOT of memory in c#. (Since the GC is very slow to start clearing memory. Doesnt happen until Im about to run out of RAM.) The reason is that it is not possible to re-use a repetaed field datastructure and just replace the content (at least not in a fast way). Atleast so I think, please correct me if Im wrong. 

In the C++ API one can access the underlying data container but not in the c# API. Is there a reason for that?   
Reply all
Reply to author
Forward
0 new messages