Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase torrent seed preparation speed. #1817

Open
luckypal opened this issue Feb 17, 2020 · 1 comment
Open

Increase torrent seed preparation speed. #1817

luckypal opened this issue Feb 17, 2020 · 1 comment

Comments

@luckypal
Copy link

@luckypal luckypal commented Feb 17, 2020

Hello
WebTorrent library is great.
I am developing Mobile torrent app using WebTorrent, based on IONIC.
Using IONIC, I can access file system using cordova-file-plugin, and I can seed torrent using FileStream.
But it takes much time to create torrent from video file.

I checked create-torrent package in detail, and reduce time to use original pieces from created torrent file. I requested the feature to create-torrent repository.

Anyway, it takes 100+ seconds for about 470MB even I modified creating pieces.
I continued to check webtorrent library and found some codes which takes much time.

image

It seems like to loads entire file contents from readable stream and store it to this.store.
Why should we load entire file to writable stream on memory?
I think this is not good and there is enough available to reduce time.

Waiting for your reply.
Thanks.

@luckypal

This comment has been minimized.

Copy link
Author

@luckypal luckypal commented Feb 18, 2020

I think if we customize of ChunkStore instead of using memory-chunk-store in IONIC, pumping is not need. Can you provide the similar example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.