Can you clarify what language you are using? Have you tried using 
compression?

On Wednesday, March 27, 2024 at 7:15:33 AM UTC-7 Giedrius Statkevičius 
wrote:

> Hello,
>
> We have a stream of messages with map<string, string>. It is guaranteed 
> that a lot of strings repeat themselves over multiple messages. I would 
> like to avoid paying the price of allocating multiple copies of the same 
> string in the same stream. Perhaps there is some easy way of implementing 
> that on the gRPC level?
>
> We could hook into `proto.Marshaler` but it's not possible to pass custom 
> parameters there and if there were then there is no way to create a 
> per-stream string/symbol table. Ideally, it wouldn't be a global symbol 
> table because streams typically have very different strings.
>
> Has anyone done this?
>
> Thanks in advance,
> Giedrius
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/c55cf152-fc8d-49e9-82bb-8ca1357010c3n%40googlegroups.com.

Reply via email to