When a new torrent is added to the Disk, it generates all the BlockInfos upfront, and this consumes some memory.
Those blocks should be generated dynamically when the peers request new blocks to the Disk, this would drastically reduce the amount of memory consumed.
Also, this would eliminate the need of using the crate decurse.
When a new torrent is added to the Disk, it generates all the BlockInfos upfront, and this consumes some memory.
Those blocks should be generated dynamically when the peers request new blocks to the Disk, this would drastically reduce the amount of memory consumed.
Also, this would eliminate the need of using the crate
decurse
.