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

Create sandbox from input stream #9

Open
gt3 opened this issue Jun 21, 2018 · 2 comments
Open

Create sandbox from input stream #9

gt3 opened this issue Jun 21, 2018 · 2 comments

Comments

@gt3
Copy link
Contributor

gt3 commented Jun 21, 2018

fetch('./super.tar')
.then(response => response.body)
.then(body => body.pipeThrough(unpack).pipeTo(createSandbox))

This removes the overhead of writing to file system, by streaming in memory. It also adds flexibility to the API and performance gains.

Thanks for the excellent work @CompuIves and team. Kindly share your thoughts.

@gt3 gt3 changed the title Create sandbox from a file stream Create sandbox from input stream Jun 21, 2018
@CompuIves
Copy link
Member

I really like this idea! Much better than downloading untarring etc.

@gt3
Copy link
Contributor Author

gt3 commented Jul 31, 2018

Alright, I'll try to cook something up by this weekend. It's mostly changing the contracts and the control flow of the existing methods to work with streams. Thanks for the input @CompuIves .

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

2 participants