mleku on Nostr: fun fact: regardless of whether an event was received via protobuf, or JSON, or ...
fun fact:
regardless of whether an event was received via protobuf, or JSON, or msgpack, it still has to be rewritten as a json array to get the canonical ID
JSON is the slowest codec of these, so there really is no impediment to using other (binary) codecs except for the retardation of client devs who don't understand network protocols well
Published at
2024-05-07 10:48:07Event JSON
{
"id": "f19a120d6e55b1339742aa54b488c54ede4e8bb954dc98687fae663715709d1e",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1715078887,
"kind": 1,
"tags": [],
"content": "fun fact:\n\nregardless of whether an event was received via protobuf, or JSON, or msgpack, it still has to be rewritten as a json array to get the canonical ID\n\nJSON is the slowest codec of these, so there really is no impediment to using other (binary) codecs except for the retardation of client devs who don't understand network protocols well",
"sig": "f57421d3c8d414b6768ed571ffd316c6edce388a6108c21cee0172dcb26fcdabcdc340a9e2e65d6502c0bea75476b126ceb79cbd5b0ecdd8214cc85071285261"
}