4 ms·
Doesn't this mean you are just pushing the decoding overhead into the runtime instead of upon receiving?
by codexon 14y ago
Doesn't this mean you are just pushing the decoding overhead into the runtime instead of upon receiving?
- kentonv 14y agoTo some extent, yes. But the total overhead of bounds-checking pointers in a Cap'n Proto message is orders of magnitude smaller than the overhead of decoding an equivalent protobuf message. (You can see this in my benchmarks. Look for "object manipulation time". It's usually a bit slower for Cap'n Proto, but the total time is dwarfed by I/O time.)