ArrayBuffer and friends), because they're fast and well-supported by fantastic libraries like scijs-ndarray.
I'm wondering now how to store this data, given that it will have to be manipulated frequently – change a few columns of numbers here, remove and add some rows there, etc.
If I use a blob object in some database, then persisting the changes on a byte-by-byte basis ranges from difficult to impossible.
If I store every Buffer in a binary file, and use filesystem seek/read/write ops, I get finegrained control but I lose convenience, and I don't know what I'd lose in terms of speed, safety and size (maybe it makes sense to run RLE compression on sparse data).
Maybe there are other options (Protobuf? HDF5?) but I don't know whether they really are valid options or if I just haven't done my research. Also, serializing back and forth between formats takes time.
I've never done this kind of thing and completely lack the intuition for what's significant and what's negligible. How would you approach this problem?