News for hackers. Stuff that matters.
Re:Cap'n Proto 0.6 released – 2.5 years of improvements by makmanalp on Tuesday May 02, 2017 @02:16PM (#14249009)
Wait, but then aren't you merely shifting the serialization cost instead into building capnproto objects? (and perhaps that's more efficient somehow?) It seemed to make more sense when you already have your data as capnproto objects, versus creating objects only to send and discard them, which is similar to regular old serialization again.
Re:Cap'n Proto 0.6 released – 2.5 years of improvements by kentonv on Tuesday May 02, 2017 @02:50PM (#14249367)
With Protobuf, you still have the cost of constructing the objects, and the cost of then serializing them. Cap'n Proto removes the latter cost. Serializing is generally the much more expensive step. It also turns out Cap'n Proto reduces the building cost by a fair amount, because the arena-style allocation needed to support zero-copy output also happens to be a lot cheaper and more cache-friendly, but that's somewhat of an accident.

For message-passing scenarios, Cap'n Proto is an incremental improvement over Protobufs -- faster, but still O(n), since you have to build the messages. For loading large data files from disk, though, Cap'n Proto is a paradigm shift, allowing O(1) random access.

Re:Cap'n Proto 0.6 released – 2.5 years of improvements by makmanalp on Tuesday May 02, 2017 @03:16PM (#14249635)
I understand much better now - thank you very much! And congratulations on the release!