You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WelchConfig precomputes an fft plan, and preallocates the necessary intermediate buffers.
Thus, repeated calls to `welch_pgram` that use the same `WelchConfig` object
will be more efficient than otherwise possible.
The latter part encourages re-use, but the former part hints that concurrent re-use may have a race condition. It might be useful to call this out explicitly so that a naive
Yeah, that's true for most of the configs. Maybe a warning is warranted but OTOH it should be obvious because it is stated that buffers are pre-allocated.
The
WelchConfig
docstring has an interesting nugget:DSP.jl/src/periodograms.jl
Lines 545 to 549 in d08699a
The latter part encourages re-use, but the former part hints that concurrent re-use may have a race condition. It might be useful to call this out explicitly so that a naive
doesn't become a user footgun
The text was updated successfully, but these errors were encountered: