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

Implement native streams #178

Closed
richarddavison opened this issue Feb 20, 2024 · 1 comment
Closed

Implement native streams #178

richarddavison opened this issue Feb 20, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@richarddavison
Copy link
Contributor

Currently Readable & Writable streams are only available from a polyfilled JavScript module and is not used inside the SDK or for Fetch calls for performance and latency reasons.

LLRT should implement Readable-, Writable-, Duplex- and Transfer streams nativly in Rust. This would allow performant stream processing, increase throughput and be more memory efficient as users can pipe data through streams.

However, the streams API is gigantic. The polyfilled streams module is almost 6500 lines of JS supporting a lot of edge cases. There is also some difference between Node.js Streams and WebStreams.

A very basic initial implementation is currently implemented for child_process and socket module that can be expanded to support a richer Streams API.

@richarddavison
Copy link
Contributor Author

Duplicate of #544

@richarddavison richarddavison marked this as a duplicate of #544 Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants