3 ms·
That would have also fixed it, though IDK what is necessarily "better." Recursively serialized JSON, XML, whatever is a code smell in general. (Note that outs
by paulddraper 4y ago
That would have also fixed it, though IDK what is necessarily "better."
Recursively serialized JSON, XML, whatever is a code smell in general.
(Note that outside certain examples like this, in general BSON is not smaller than JSON. You'd need something like protobufs. )
- kccqzy 4y agoRecursively serialized data isn't a smell. How would you even serialize a tree structure without recursion?
- icedchai 4y agoA recursive data structure is fine, if you implement the serialization in a sane way. The escaping of your escaped strings containing other escaped strings seems like a code smell.
- anonymoushn 4y agolike this basically https://simdjson.org/api/0.4.0/md_doc_tape.html https://simdjson.org/api/0.4.0/md_doc_tape.html