mafintosh / torrent-stream

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

High CPU usage with multiple engines #136

Open LeeChSien opened 8 years ago

LeeChSien commented 8 years ago

Hi, I tried to build a prototype mac app with electron (https://github.com/LeeChSien/electron-torrent). But if I download multiple files with multiple torrent-stream engines concurrently, the CPU usage seems too high. How can I solve this problem? Maybe reduce connections in the option?

mafintosh commented 8 years ago

how many connections are you using now?

LeeChSien commented 8 years ago

100 peers / engine.

mafintosh commented 8 years ago

yea thats a bit high. i would probably limit that to 20-30