|
|
|
|
|
by kentonv
107 days ago
|
|
> flatbuffers and capnproto are in the game of trying to make serialization to binary format as efficient as possible. Little-understood fact about Cap'n Proto: Serialization is not the game at all. The RPC system is the whole game, the serialization was just done as a sort of stunt. Indeed, unless you are mmap()ing huge files, the serialization speed doesn't really matter. Though I would say the implementation of Cap'n Proto is quite a bit simpler than Protobuf due to the serialization format just being simpler, and that in itself is a nice benefit. The recently-released Cap'n Web jettisons the whole serialization side and focuses just on the RPC system: https://blog.cloudflare.com/capnweb-javascript-rpc-library/ (I'm the author of Cap'n Proto and Cap'n Web.) |
|