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

Remove unused data from demodblock output, remove likely unneeded rawdata copy #796

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

oyvindln
Copy link
Contributor

@oyvindln oyvindln commented Sep 12, 2022

demod_hpf isn't used for anything currently (looks like it was intended to be used for DOD at some point, but the code is commented out. As the output from demodblock is pickled for sending between threads, not calculating and storing this unneeded array should cut down on memory bandwidth and processing a tad. demod_hpf could be added back later if needed.

Also removed the extra clone of rawdata

I didn't touch it for now, but demod_raw in the output data block is also just used to check where values exceed a threshold in dropout_detect_demod, so demodblock output could possibly be further slimmed by doing that calculation in demodblock instead and output the boolean array result of that instead of a array of doubles as it is now.

Some quick testing does indicate there is some notable speedup from these changes

@happycube happycube merged commit e971fe1 into happycube:master Sep 12, 2022
@oyvindln oyvindln deleted the upstream_stuff3 branch June 22, 2024 20:26
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

Successfully merging this pull request may close these issues.

None yet

2 participants