3 ms·
Prefixed length formats that don't make assumptions on encoding are a very good pick. The most important thing is that once you read the length, you can just bu
by antirez 13y ago
Prefixed length formats that don't make assumptions on encoding are a very good pick. The most important thing is that once you read the length, you can just bulk-read the payload without actually parsing it, that's up to the higher layer (if parsing is needed at all).
A general purpose serialization format that requires per-char processing is a terrible pick.
- rdtsc 13y agoAgreed. I had to implement base64 encoding to pass data through JSON, yeah it works but seems terribly wasteful.
- pg_is_a_butt 13y ago"had to" is different than, "i don't know how to contextually escape data"