On Wed, Jan 15, 2020 at 5:05 PM Immanuel Haffner <haffner.imman...@gmail.com> wrote: > To make my scenario more concrete: > I habe data in main memory, easily tens or hundreds of gigabytes. Programs > fly in requiring to access the data. Some programs are short-lived, some will > take a long time to compute. Some programs are executed only one, some are > executed repeatedly. So I will have to JIT compile many programs to WASM > modules. Copying the data into the memory of each module would totally kill > performance.
Totally a hack but you can munmap() the memory that V8 allocated for the ArrayBuffer's backing store and mmap() your own at the same address with MAP_FIXED. You can use a memfd[0] to create anonymous memory that's mapped at multiple addresses. [0] http://man7.org/linux/man-pages/man2/memfd_create.2.html -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CAHQurc9UhMgfKacU-W%3Dc6RHOriVMsd_obYzCoURQWPwmmOWWeA%40mail.gmail.com.