Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSlow down when adding multiple torrents #1065
Closed
Comments
This comment has been minimized.
This comment has been minimized.
|
Thanks for posting this issue. I plan to do something about the CPU issue when I get some more time. This is a known issue. Also, btw, it's probably not a good idea to add 50 torrents to the client (if they are all downloading) at the same time, even once we fix this issue. Most torrent clients limit to 5 active at any given time. |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of WebTorrent?
master (0.98.8) and below
What operating system and Node.js version?
Windows 10 & Mac OSX Sierra
What browser and version? (if using WebTorrent in the browser)
Tried with the latest build of Chrome. Canary and Firefox
What did you expect to happen?
Not slow down and crash webpages.
What actually happened?

Pages slow down significantly when adding multiple torrents at a time. Even with a 100ms delay between adding torrents the page becomes unusable. Adding 50~ torrents with a 100ms between addition, this is the CPU profile
This behavior can be seen when going to instant.io and adding maybe 10~ torrents.