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 upQUESTION:Is the files being seeded loaded into the memory? #1343
Comments
This comment has been minimized.
This comment has been minimized.
|
No, the file is loaded chunk by chunk from the filesystem using fs-chunk-store Here's the relevant bit of code https://github.com/webtorrent/webtorrent/blob/master/lib/torrent.js#L1088 |
This comment has been minimized.
This comment has been minimized.
|
@hz0324 Even though we don't load the file into memory, it's worth pointing out that seeding 1000 files will likely perform poorly because WebTorrent does not do any kind of resource management. Each torrent instance will just try to use as many resources (connections, CPU, etc.) as it needs. Practically, anything over 10-100 torrents is likely to perform poorly until we fix that. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I wondered, if I seed a file using webTorrent desktop app. Is the file loaded into memory? Or it just need a file path?
Because I want to seed 1000 files, their size can be really big.