Hi
We used Cap'n Proto to serialize data in a shared memory environment and
defined some message types as structs containining List, i.e.
struct Message{
points @0 List(Vector3f)
};
Where Vector3f is another struct containing either 3 floats or a
List(Float32). However, extracting the Vector3f's from the List is not fast
enough for our use cases as you basically need to use std::copy or
std::transform on the List. We instead now replaced the definition by
struct Message{
points @0 Data;
};
and just read and copy the array of bytes. Unfortunately, this basically
gets rid of the nice schema language of Cap'n Proto. So, what's the most
efficient way to define and read a contiguous array of the same data type?
Best,
Philipp
--
_This message is confidential and only for the use of its addressee. Email
communications are not secure and therefore we do not accept responsibility
for the confidentiality or unaltered contents of this message._
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/capnproto/6a847434-c48b-4b18-9252-737562301464%40googlegroups.com.