-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data is copied a lot #128
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: