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

A question about decoding while downloading #18

Open
steelbrain opened this issue Dec 18, 2015 · 2 comments
Open

A question about decoding while downloading #18

steelbrain opened this issue Dec 18, 2015 · 2 comments

Comments

@steelbrain
Copy link

Decode while downloading (using HTTP Range requests or splitting into separate files)

Since WebAssembly is targeted at newer browsers, how about you guys use the new fetch API for this, you would be able to use the data as it's received and all that in a single http request, no more ranges.

Link: MDN fetch

@jdalton
Copy link

jdalton commented Dec 18, 2015

And exclude Edge? No way ;)

@lukewagner
Copy link
Owner

Does the Fetch API provide the ability to stream in data before the Streams API has landed (which I didn't think was anywhere yet)?

Regardless, Fetch is pretty new and the polyfill would want to support as many browsers as it could so, realistically, it would use feature detection and use the best thing it could, falling back on XHR. E.g., IE (Edge still?) has ms-stream and Firefox has moz-chunk-arraybuffer.

I should also note that this repo is not being actively worked on. Alon is working on a high-performance polyfill based on a similar strategy in Binaryen, though that I think will be evolved into something industrial strength (where these streaming techniques could help).

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

3 participants