4 ms·
you can "force" integer arithmetic with bit or (example your_float|0), this helps the JavaScript runtime to optimise calls and use (faster) int arithmetic. (htt
by K0IN 3y ago
you can "force" integer arithmetic with bit or (example your_float|0), this helps the JavaScript runtime to optimise calls and use (faster) int arithmetic. (https://stackoverflow.com/questions/23436159/how-bitwise-operations-boost-performance-in-asm-js https://stackoverflow.com/questions/23436159/how-bitwise-ope...)
always remember the fastest code is the code that is not executed at runtime.