48
yetAnotherPleb
483d669bbe2ba2fe809bc90c2cccb1d8d2f2b083daabaa5f60a629537df95181
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.
Thanks. Just curious, for Bitcoin nodes, do you get the data from bitnodes.io or do you run you own process?