inspectrum icon indicating copy to clipboard operation
inspectrum copied to clipboard

Data is copied a lot

Open hansvi opened this issue 7 years ago • 0 comments

SpectrogramPlot::getLine copies the sample data to a buffer, then this is copied to an fftw aligned buffer in fft.cpp, the fft is calculated, and the result copied back to another buffer. That's a lot of data being copied unnecessarily. It might be better to let the FFT class calculate the logPower directly from the sample source? this would group the calculations, making it easier to optimize? Maybe there are even better ways? I can implement this if you give the OK.

hansvi avatar Apr 17 '17 10:04 hansvi