On 2013-09-21 14:48, mrd wrote:
What is the purpose of the "keys"?
Fields are looked up by name. This is to avoid a dependency of the order of the fields. I guess I can look up by field order instead and fallback to a name look up if a name don't match.
If they really needed, can it be realised as option and disable them? (I see also that they are forces to add a lot of duplicate functions.)
Yeah, I guess so.
I guess if it succeeded binary format can be made very compact (and possibly faster) as Protocol Buffers.
I'm working on a binary archive as well. It ignores the name and look up by field order instead. It assume that the archived data and the class/struct has the same field order.
-- /Jacob Carlborg