Using bencode over json would probably speed up the web more. Not to mention good ole X.690. The web is completely cooked when it comes to efficiency.
anything that deserializes arbitrary json will put it into a hash table, right? it would definitely speed up the web.
barsoap@lemm.ee 1 week ago
lime@feddit.nu 1 week ago
the biggest speedup would probably come from using proper schemas that can be efficiently parsed. but we’ve made our bed out of ad-hoc protocols.
frezik@midwest.social 1 week ago
JSON libraries are stupidly well optimized. There are binary encoding schemes that are faster and more compact, but its hard to beat JSON for text-based.
0x0@lemmy.dbzer0.com 1 week ago
Everyone prepare for your minds to be blown:
barsoap@lemm.ee 1 week ago
And yet all that pales in comparison to using react (or whatever framework) over vanilla js. Enter McMaster-Carr.
lime@feddit.nu 1 week ago
yupyup, just send HTML over the wire. it’s fine.
frezik@midwest.social 1 week ago
Depends on the implementation, but most will, yes. There are other forms of associative arrays, like trie or binary tree, but hash is the most common.