Thank you for the responce.

> There's something in development called "asmfs" in emscripten that may be 
> close, but it's not very clear what its goal is.
>
"asmfs"  seems to be temporary disabled ( 
https://github.com/emscripten-core/emscripten/issues/9534 )

emscripten_wget* functions may be more straightforward. I didn't use them 
> because of various asynchronicity issues. 
>
 This is what I was looking for. I tried emscripten_wget, but it also 
require ASYNCIFY, which greatly increased my binary size (14Mb -> 21Mb) and 
as far as I understand this would also slow down whole application 
> Asyncify adds overhead, both code size and slowness, because it 
instruments code to allow unwinding and rewinding. That overhead is usually 
not extreme, something like 50% or so.
So I'm using emscripten_async_wget now, without ASYNCIFY. It preloads all 
files into filesystem and then no other code changes are needed.

Beware of memory usage, and avoid LZ4 for your .data because that makes 
> files read-only.
>
Should I worry about memory, if all files I have are ~100Mb total?

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/90be231e-ae46-4b38-9446-0dcbfc431409%40googlegroups.com.

Reply via email to