Closed stfnp closed 2 years ago
Apparently C++ standard math functions (sin, cos, sqrt etc.) can be much faster if the -fno-math-errno flag is set: https://medium.com/@ryan.burn/why-standard-c-math-functions-are-slow-d10d02554e33
-fno-math-errno
Could be done without losing anything, since we don't use the error handling anyway.
https://stackoverflow.com/questions/3134660/how-to-apply-different-compiler-options-for-different-compilers-in-cmake
Done. No noticeable performance improvement at first glance (maybe the difference could be measured with some benchmarking).
Apparently C++ standard math functions (sin, cos, sqrt etc.) can be much faster if the
-fno-math-errno
flag is set: https://medium.com/@ryan.burn/why-standard-c-math-functions-are-slow-d10d02554e33Could be done without losing anything, since we don't use the error handling anyway.