I wonder if storage-wise there's a more efficient way to represent large typed arrays. I played around with various buffer wrappers when trying to optimize https://observablehq.com/@mootari/storage#EvalSerializer but couldn't come up with anything that had a significantly smaller footprint (without introducing too much complexity on the encoding/decoding side).
Yeah, that's definitely one of the hardest parts to serialize. Hard to say if there's a way that's much more efficient while still being JSON-compatible, but maybe one approach is to do something like postMessage's `transferrable` parameter and put any typedarrays in separate storage and encode them with something designed for that kind of homogenous data, like Flatbuffers?