3 ms·
Theres still a serialization step, so this is not an infinite improvement. The real "zero serialization" is writing stuff 1:1 from memory to disk (or where you
by revelation 14y ago
Theres still a serialization step, so this is not an infinite improvement.
The real "zero serialization" is writing stuff 1:1 from memory to disk (or where you want it to go). This works great in languages like C where you can make assumptions for memory layout and use mostly POD-types [1]. But even then, you still have to fixup pointers.
[1]: I guess this is the reason why fread has split the amount of bytes to read into a "size of item" and "items" parameter:
http://linux.die.net/man/3/fread http://linux.die.net/man/3/fread
- kentonv 14y ago> Theres still a serialization step, so this is not an infinite improvement. There is? What happens during the serialization step? > The real "zero serialization" is writing stuff 1:1 from memory to disk Is that not exactly what Cap'n Proto does?