I'm running into out of memory issues when I attempt to decode MessagePack files using the msgpack-lite library in the browser. When run, the browser tab crashes (Chrome shows an 'Awww Snap!' error page). If I run the app with the developer tools open and set some breakpoints, it stops occasionally with a warning of a potential out of memory error. I can then continue execution and the decoding completes successfully. This leads me to believe the garbage collector needs time to run.
I'm wondering if there are any known issues around types of files or ways of interacting with the msgpack-lite library that affect this? Does the organization of file contents affect memory requirements?
In the application I'm using Angular/RXJS and calling msgpack.decode(new Uint8Array()):
this.http.get(url, {responseType: 'arraybuffer'})
.map((response: ArrayBuffer) => BaseService.msgpack.decode(new Uint8Array(response)))
One of the files I'm having problems with is available here: https://file.io/SYxHDb
Any help with this is greatly appreciated!