kfrlib / kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
https://www.kfrlib.com
GNU General Public License v2.0
1.64k stars 252 forks source link

resampler extremly slow in debug #130

Closed mipac closed 3 years ago

mipac commented 3 years ago

In debug mode, the resampler is very slow It's not a bug, but is it expected?

dancazarin commented 3 years ago

Debug builds are not optimised at all with default settings, so this is expected. This is not something that KFR can control. Changing compiler settings can help to some extent. You can try to add -O2 for translation units that use KFR and check the performance again. But all optimisation settings make debug harder.