Thanks a lot Jakob.
I will move the HandleScope out of the loop first. I think moving to Wee8
is the best solution, since I only need WebAssembly support. (I tried Wee8
some months ago, but failed. I will give it another try.) I will experiment
with your suggestion of producing the string in We
No, there is no way to write to stdout directly, and that's intentional.
WebAssembly code can only use imported functions to communicate with the
environment.
The lowest-hanging fruit here is to move the HandleScope out of the loop.
HandleScope creation/destruction is somewhat expensive, and you c