Test different storage methods for high-throughput VNC recording (~10MB/s)
Current approach: Push Uint8Array chunks to a JavaScript array. Simple but memory-heavy.
Allocate a large ArrayBuffer upfront and write into it. Avoids repeated allocations.
Store data in fixed-size 64MB ArrayBuffers. Balances memory efficiency with GC pressure.
Stream to Origin Private File System. Keeps memory low but requires async writes.
Store chunks in IndexedDB. Persistent storage with automatic memory management.
Periodically merge chunks into Blobs. Leverages browser's blob storage.
| Method | Status | Data Written | Time | Throughput | Peak Memory |
|---|