r/rust • u/wizenink • Oct 26 '25
stft-rs, simple, streaming based STFT computing crate
Hey r/rust, just published an STFT crate based on rustfft. This was a side-rabbithole while implementing some model on Burn, which eventually became a simple library.
Contributions, feedback and criticism welcome!
28
Upvotes
View all comments
Show parent comment
2
u/wizenink Oct 26 '25 edited Oct 26 '25
Yes, they allocate. The streaming was implemented at the last moment, as the library comes from some code used to train a model, so batching was a priority, but I should be able to have some performance improvements by tomorrow (some rayon parallelization, avoiding some copies and only allocating on config and reuse the same buffers/buffer pools) Thank you for your feedback!