DEV Community

Discussion on: Optimising a JavaScript library with WebAssembly, a failed attempt!

Collapse
 
karljosef_adler_582893b8 profile image
Karl-Josef Adler

If you do the test loop in JS, it must be bad. The time is wasted at the interface

Collapse
 
antoniovdlc profile image
Antonio Villagra De La Cruz

Thanks for the insight!

I think this was probably not the best candidate library to try and optimize. As you have pointed, computation is minimal and all the performance is wasted at the interface.