When you say "serialize to a string", do you mean text? If so, Cap'n Proto can't provide any help here; Cap'n Proto is a binary serialization framework.
If you mean "string" more generally as "a string of arbitrary bytes", then, yes, Cap'n Proto is likely to out-perform Protocol Buffers for this use case. However, if all you need to serialize is a single large array of floats, then you could also just reinterpret your array as bytes and read/write it directly. This is essentially what Cap'n Proto will do under tho hood. -Kenton On Mon, Feb 11, 2019 at 1:38 AM <[email protected]> wrote: > I need to serialize a larger vector of float to string using c++, in this > use case, does cap'n proto outperform other frameworks? any suggestions are > welcome. > > -- > You received this message because you are subscribed to the Google Groups > "Cap'n Proto" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at https://groups.google.com/group/capnproto. > -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/capnproto.
