JuliaDSP / DSP.jl

Filter design, periodograms, window functions, and other digital signal processing functionality
https://docs.juliadsp.org/stable/contents/
Other
381 stars 109 forks source link

Add inbounds to methods in design.jl #540

Closed Jafagervik closed 6 months ago

Jafagervik commented 7 months ago

Add @inbounds macro to for loops to avoid boundary checks and speed up computations

wheeheee commented 7 months ago

That can be done. Would you mind doing some light benchmarking, post the results, and submit a PR? In some cases omitting inbounds speeds up the loop / bounds checks are automatically elided anyway.