4 ms·
> There doesn’t seem to be anything that is reasonably space efficient, simple and quick to parse and text based (not binary) so you can view and edit it with a
by sargun 4y ago
> There doesn’t seem to be anything that is reasonably space efficient, simple and quick to parse and text based (not binary) so you can view and edit it with a standard editor.
> XML and Javascript are tree structures and not suitable for efficiently storing tabular data (plus other issues).
You can certainly be efficient with json(net). See:
Notice how they are separate objects:
{'name': 'foo', 'age': 2}
{'name': 'cat, 'age': 6}
You can do it very efficiently: https://github.com/simdjson/simdjson https://github.com/simdjson/simdjson
Compress it if you need compact.
There's also UBF, but it never saw much traction: https://ubf.github.io/ubf/ubf-user-guide.en.html#specifications https://ubf.github.io/ubf/ubf-user-guide.en.html#specificati...
- benibela 4y agoXML can be more efficient, since you do not have to surround the key with quotes. It saves two characters at the foo/cat each: <r name="foo" age="2"/> <r name="cat" age="6"/>