mafintosh / torrent-stream

The low level streaming torrent engine that peerflix uses
MIT License
1.95k stars 227 forks source link

Question: improve the garbage collection of the file-stream.js #103

Open 0x4139 opened 9 years ago

0x4139 commented 9 years ago

how can we dispose the buffers that have been sent to the client ?

mafintosh commented 9 years ago

i'm not sure what you mean? this happens automatically by v8 gc

0x4139 commented 9 years ago

ok, but the memory footprint gets quite big, and i was wondering if there is a better way to dispose of a buffer in the filestream once someone reads it.