If I recall correctly, our classic X11 desktop app mmaps the whole data file, gets the returned array buffer, and indexed into that array, allowing the *nix memory mapper to do the heavy work of reading in the correct pages. You have to be careful about access order to avoid excessive page faults, but otherwise we can rely on the operating system to make available the pages of our mega files. My understanding is that browsers (including Chrome used in Electron) don't support this sort of paged access. I'd love to be wrong about this ...
-- 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/2e719677-6a03-4aed-a421-b294e2e11b6e%40googlegroups.com.
