codesandbox-importers icon indicating copy to clipboard operation
codesandbox-importers copied to clipboard

Create sandbox from input stream

Open gt3 opened this issue 6 years ago • 2 comments

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 avatar Jun 21 '18 20:06 gt3

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

CompuIves avatar Jul 31 '18 15:07 CompuIves

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 .

gt3 avatar Jul 31 '18 16:07 gt3