You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I'm working on a project to stream video in torrent files, and have encountered an issue: the more of a movie is downloaded, the more memory is used, sometimes resulting in a crash due to out of memory errors. I've taken a heap snapshot, and it points to the bencode library, which I know your library usues.
Gunzip that and load it in chrome's profiler, and you'll see system / JSArrayBufferData uses gigabytes of memory. I have very little experience interpreting heap snapshots, but the only file name I found was node_modules/bencode/lib/decode.js
The text was updated successfully, but these errors were encountered:
Hi. I'm working on a project to stream video in torrent files, and have encountered an issue: the more of a movie is downloaded, the more memory is used, sometimes resulting in a crash due to out of memory errors. I've taken a heap snapshot, and it points to the bencode library, which I know your library usues.
My project is here: https://github.com/mortie/mmpc-media-streamer/. The file which uses torrent-stream: https://github.com/mortie/mmpc-media-streamer/blob/master/js/kickass-proxy/streamer.js
The heap snapshot file is too big for github, so I put it on my web server: https://d.mort.coffee/file/heapsnapshot.gz
Gunzip that and load it in chrome's profiler, and you'll see system / JSArrayBufferData uses gigabytes of memory. I have very little experience interpreting heap snapshots, but the only file name I found was
node_modules/bencode/lib/decode.js
The text was updated successfully, but these errors were encountered: