There's a proposal to make [shared]arraybuffer resizeable in place, which is great for us
https://github.com/tc39/proposal-resizablearraybuffer
It's expected to be supported quite fast in all of the platforms that supports SharedArrayBuffer, so we probably can make it as a requirement for the library, with A configurable out of memory strategy.