Allocating Memory over then 2G bytes #20287
Replies: 3 comments
-
@aharondavid I've had success allocating upto 6GB following these more or less:
I'm not a browser/engine dev, but my favorite place to keep track of the progress is the https://github.com/WebAssembly/proposals page where you can see Memory64 is in Phase3 which means we could get it in stable browsers by the end of this year. |
Beta Was this translation helpful? Give feedback.
-
Setting MEMORY64=1 has a big effect on my App and maybe refactoring in some cases. |
Beta Was this translation helpful? Give feedback.
-
To overcome on allocating memory on the heap over then 2G, as I
understand, I have the following options:
1. Compiling the App with MAXIMUM_MEMORY=4g
2. WebAssembly 64bit which is currently still in development phase
Is an other options?
As far as I know those are your two options. I don't know of any kind of
memory sharding options, at least no in emscripten.
|
Beta Was this translation helpful? Give feedback.
-
To overcome on allocating memory on the heap over then 2G, as I understand, I have the following options:
Is an other options?
I thought about a way to split the Shared Memory to a several process (each of them will contain max 2G bytes) , and a main process will access to those Shared Memory process.
Beta Was this translation helpful? Give feedback.
All reactions