Open HarryR opened 6 years ago
Interestingly, GMP is very slow in Emscripten with WebAssembly, and 30% slower than an optimised version of a 256bit multiply operation.
Improving performance on WebAssembly would require investigating field operations performance in WebAssembly. Likewise, a 30% speedup could be made by using an alternative to GMP?
Need to verify or reflect on the following opportunities for optimisation:
-flto
and -fwhole-programwith GCC, see: https://stackoverflow.com/questions/13674894/when-to-use-certain-optimizations-such-as-fwhole-program-and-fprofile-generate - all of
libsnarkcan be built like this, but
libgmp` uses the system implementation