Global Feed Post Login
Replying to Avatar jb55

messagepack would work fine I think. biggest gains would be parsing efficiency and battery life gains. decoding json sucks and is slow.

nostrdb has optimizations to skip parsing altogether when it doesn’t need to (stops parsing at the id field if we already have the note). The performance boost there is nice. messagepack or some other format would be another boost.

The *ideal* way would be something like flatbuffers, where you could just memcpy the note into your db… but is more complex.

Avatar
frphank 1y ago

CBOR is basically the RFC standardized version of messagepack.

I recommend CBOR.

Reply to this note

Please Login to reply.

Discussion

No replies yet.