Why Nostr? What is Njump?
2023-09-16 14:43:38

mutatrum on Nostr: Nostr performance pro tip: put the `id` field first in an event. This enables clients ...

Nostr performance pro tip: put the `id` field first in an event.

This enables clients and relays to abort deserialisation if they've already seen the event.

After that the `created_at` and `kind`, as that can also eliminate unnecessary deserialisation early on.
Author Public Key
npub1hklphk7fkfdgmzwclkhshcdqmnvr0wkfdy04j7yjjqa9lhvxuflsa23u2k