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

Optimizations inspired by ssqueezepy #69

Open
cboulay opened this issue Jan 3, 2025 · 0 comments
Open

Optimizations inspired by ssqueezepy #69

cboulay opened this issue Jan 3, 2025 · 0 comments

Comments

@cboulay
Copy link
Contributor

cboulay commented Jan 3, 2025

ssqueezepy has a bunch of optimizations around FFT and CWT.

  • numba jit
  • fftw if available
  • optional parallel processing for fft
  • torch

jit

I tried this once and it was slower than what I had already. However, it's possible that I was using something that number couldn't handle and it fell back to python. I should try again with nopython=True to make sure I'm not providing numba-incompatible code.

fftw

This should be an easy win. The first sample will take much longer to process while fftw does its optimization but subsequent processing will be faster.

parallel

scipy.fft(..., workers=N) -- does this actually help? Isn't the overhead more than the savings?

torch

We will need all the nodes in a standard pipeline to handle torch tensors before the overhead of moving to gpu/mps is worth it.

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