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

fix: replace filestream with fast-blob-stream #171

Merged
merged 3 commits into from
Jul 3, 2022

Conversation

ThaUnknown
Copy link
Member

@ThaUnknown ThaUnknown commented Jun 26, 2022

drops filereader dep and readable-stream dep

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[ ] Bug fix
[ ] New feature
[X] Other, please explain:

What changes did you make? (Give an overview)
Replaced filestream with fast-blob-stream which is not only MILES faster, doesn't rely on buffer or readable-stream. It does however use marginally more RAM as it caches 1 piece ahead [if possible]. They are functionally the same.
Which issue (if any) does this pull request address?
webtorrent/webtorrent#1971

Is there anything you'd like reviewers to focus on?
Does this cause any issues on node? I don't think node has file, however it's reliance on blob which later versions of node have might be an issue as it uses w3c ReadableStream to create a node-like Readable which is implemented poorly in later node versions, so it might be misused, is this a potential issue?

drops filereader dep and readable-stream dep
@welcome
Copy link

welcome bot commented Jun 26, 2022

🙌 Thanks for opening this pull request! You're awesome.

@ThaUnknown ThaUnknown changed the title fix: replace filestream fist fast-blob-stream fix: replace filestream with fast-blob-stream Jul 3, 2022
@DiegoRBaquero DiegoRBaquero merged commit d93a718 into webtorrent:master Jul 3, 2022
@welcome
Copy link

welcome bot commented Jul 3, 2022

🎉 Congrats on getting your first pull request landed!

webtorrent-bot pushed a commit that referenced this pull request Jul 3, 2022
## [5.0.4](v5.0.3...v5.0.4) (2022-07-03)

### Bug Fixes

* replace filestream with fast-blob-stream ([#171](#171)) ([d93a718](d93a718))
@webtorrent-bot
Copy link

🎉 This PR is included in version 5.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants