linux icon indicating copy to clipboard operation
linux copied to clipboard

The Demo doesn't work!

Open alephman opened this issue 6 years ago • 3 comments

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... ".

alephman avatar Jan 30 '19 03:01 alephman

It downloads over 50 MB of JavaScript. Check if it is downloaded in the Developer Console.

retrage avatar Jan 30 '19 05:01 retrage

I confirmed the problem on my environment.

retrage avatar Feb 01 '19 10:02 retrage

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)

kripken avatar Oct 21 '20 20:10 kripken