What is Nostr?
yetAnotherPleb /
npub1fq7…3p72
2024-11-07 14:21:10
in reply to nevent1q…ry5l

yetAnotherPleb on Nostr: Since you need basic read and write functionality and you want to minimize storage of ...

Since you need basic read and write functionality and you want to minimize storage of data, then store the array as binary data with the “set” command. You’ll need to serialize and deserialize the list and data in your app, which adds complexity but offers much higher performance.

Next optimization would be to pack the list into as little bits as possible, so if values of each element is small then you can even represent them with a bit set, single byte, short, etc. depending on the range of the number.
Author Public Key
npub1fq7kdxa79w30aqymeyxzen93mrf09vyrm2465hmq5c54xl0e2xqstc3p72