lundi 25 février 2019

Are FlatBuffers beneficial without Zero Copy?

Can FlatBuffers still prove beneficial in terms of performance and memory efficiency when we copy the source stream (e.g. from a streambuf in boost.asio) to a user space application allocated memory? Or does it perform the best with Zero Copy only?

Just curious about this while implementing a boost.asio service using flatbuffers as the protocol.

Any example code to achieve zero copy in context of flatbuffers and boost.asio are also welcome.

Please clarify with some relevant reading material or pointers in case you feel my overall understanding of the topic itself is incorrect at the moment.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire