linux
linux copied to clipboard
The Demo doesn't work!
Hi, it seems the demo of retrage.github.io/lkl-js doesn't work as I open it in chrome both on mac and windows. It is always in the status of "Preparing... ".
It downloads over 50 MB of JavaScript. Check if it is downloaded in the Developer Console.
I confirmed the problem on my environment.
It looks like that 50MB JS file is loaded 16 times (for 16 pthreads). JS takes a lot of work to compile each of those, and 16x that uses many GB of RAM, which causes out of memory on my 16GB machine.
Recompiling to wasm should fix this, as then the wasm is just compiled a single time, and the compiled code is sent to each pthread. (Also the download would be much smaller than 50MB)