Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Doesn't this mean you are just pushing the decoding overhead into the runtime instead of upon receiving?


To 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.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: