Open
Description
We use more RAM than we need to for a large files which are downloading quickly because we keep pieces in memory until they're fully downloaded at which point we write them to disk.
I believe there's a good chance that all the reports of high RAM usage on WebTorrent Desktop are due to this design decision. Example: webtorrent/webtorrent-desktop#1877 Can we explore how we might limit the number of partial pieces in memory or somehow not keep partial pieces in memory at all?