There isn't a way to change denormal handling in JS. The spec doesn't say
either way, but I believe all browsers allow denormals in practice, which
is why you can see a slowdown.
I'm afraid the only way around this is to modify your code to avoid
denormals, if that's possible.
- Alon
On Thu, J
Hi,
We successfully compile our C++ audio processing code with emcripten in
asm.js to deploy on the web. But our C++ code uses the following
denormalized float number protection code ("protection" is needed since
denormalized float number computation is awfully slow and has to be
avoided):
#