Global Feed Post Login
Replying to Avatar ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ

write a codec. simple

in my nostr codec it decodes all the nasty hexadecimal fields (p tags, e tags, a tags) into raw binary for internal use to save memory and speed up matching, and this is also then transformed to the binary format used by the database

all you have to do is write one good codec and done, modularity solves the problem

Avatar
Liberty Farmer 1y ago

You lost me at write a code. 😂

Reply to this note

Please Login to reply.

Discussion

Avatar
ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ 1y ago

structure is already there, i just wrote a thing that converts between one format and another, in a way that is far more efficient than what fiatjaf wrote with go-nostr

Avatar
Liberty Farmer 1y ago

Ah. Gotcha

Thread collapsed
Thread collapsed