JCOF: JSON-like Compact Object Format
github.com
JCOF: JSON-like Compact Object Format
1–10 of 69 posts
Re: JCOF: JSON-like Compact Object Format
#2Re: JCOF: JSON-like Compact Object Format
#3I would like to see gzip compression added to the benchmark
curl https://raw.githubusercontent.com/mortie/jcof/main/tests/corpus/meteorites.json | gzip -9 | wc
Gives me 34569
So the comparison is: JSON: 244920 bytes
JCOF: 87028 bytes
GZIP: 34569 bytesRe: JCOF: JSON-like Compact Object Format
#4This format is also not interoperable without a decoding library, which kind of invalidates the comparison to JSON. If you're going to do this, why not just go full binary and save even more memory?
Re: JCOF: JSON-like Compact Object Format
#5I would like to see gzip compression added to the benchmark
curl https://raw.githubusercontent.com/mortie/jcof/main/tests/corpus/meteorites.json | gzip -9 | wc Gives me 34569 So the comparison is: JSON: 244920 bytes JCOF: 87028 bytes GZIP: 34569 bytes
Author mentions gzip doesn’t work for some use cases. For use case mentioned I’d expect sqlite to be similar, at least that is the default thing I’d reach for.
If for some reason sqlite wasn’t sufficient probably a custom binary encoding controlled and updated via code instead of config would be next.
Re: JCOF: JSON-like Compact Object Format
#6Re: JCOF: JSON-like Compact Object Format
#7Slight awkwardness with the spoken pronunciation.