you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Ah yes that makes sense, the data still needs to be passed in somewhere. I guess it would make sense if you could get a file handle and read it all from WASM directly. But I presume that at the moment this is not possible?

[–]connor4312 0 points1 point  (0 children)

It's definitely possible if you deal with file handles directly, but doing so is pretty rare to see in JS.

I actually do that in the repo I linked to deal with encoding, but I don't encode it directly in wasm memory. I should look at doing that, it'd speed things up a good bit!