Skip to content
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

Open
hansvi opened this issue Apr 17, 2017 · 0 comments
Open

Data is copied a lot #128

hansvi opened this issue Apr 17, 2017 · 0 comments

Comments

@hansvi
Copy link

hansvi commented Apr 17, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant