sireliah / dragit

Application for intuitive file sharing between devices.
GNU General Public License v3.0
140 stars 4 forks source link

Outbound memory issue (consumes too much memory on file reading) #38

Closed sireliah closed 2 years ago

sireliah commented 2 years ago

When sending file to remote peer, the sender app instance consumes too much memory. In fact, the sender pushes the whole file to RAM. Here is the related code.

Please note that file buffering at the receiver app instance doesn't allocate much more RAM than the capacity of the mpsc channel.