Skip to content

Optimize stream operations #1280

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

Open
coyotte508 opened this issue Mar 12, 2025 · 0 comments
Open

Optimize stream operations #1280

coyotte508 opened this issue Mar 12, 2025 · 0 comments

Comments

@coyotte508
Copy link
Member

Off the top of my head

  • Use the byte utilities provided by creating a ReadableStream with {type: "bytes"} that avoid copying data to stream internals
  • Avoid copying data when doing result.value = new Uint8Array([...leftoverBytes, ...result.value]);
  • maybe check lz4 decompression performance & impact

This is to investigate, to see if any of those has any real impact

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

No branches or pull requests

1 participant